Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!seismo!hao!hplabs!sri-unix!pae%helens@sumex-aim From: pae%helens%sumex-aim@sri-unix.UUCP Newsgroups: net.unix-wizards Subject: math library bugs Message-ID: <2677@sri-arpa.UUCP> Date: Thu, 30-Jun-83 13:59:00 EDT Article-I.D.: sri-arpa.2677 Posted: Thu Jun 30 13:59:00 1983 Date-Received: Sun, 3-Jul-83 17:16:19 EDT Lines: 11 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