math library bugs

pae%helens%sumex-aim at sri-unix.UUCP pae%helens%sumex-aim at sri-unix.UUCP
Fri Jul 1 03:59:00 AEST 1983


The math library /usr/lib/libnm.a & /usr/src/lib/libnm which came with our
4.1 system (and is much faster than the C version in /usr/lib/libm.a) has
some register trashing bugs in atan2, asin, & acos.  Specifically, the 
register save masks at the begining of the routines are wrong and
atan2 trashes r4 & r5,
asin & acos trashes r8 & r9.
This tends to show up as C register variables getting myteriously trashed
in routines which may be many levels removed the one calling these trig
functions.

-Peter Eichenberger



More information about the Comp.unix.wizards mailing list