summaryrefslogtreecommitdiffstats
path: root/lib/libm/noieee_src/n_atan2.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* bring reference C code that's not compiled in synch with asm codeespie2013-07-151-1/+7
| | | | okay martynas@
* Switch libc and libm to use strong aliases rather than weak aliasesmartynas2013-03-281-2/+2
| | | | | | | | | | | where appropriate. Among other things makes the symbols consistent across all architectures (notably where ldbl mantissa is 53 bits). While at it, kill unused LINTLIBRARY/PROTOLIB1 cruft which was there to trick lint into recording the right prototypes for aliased functions. Most of the work done at the awesome n2k13 hackathon. Agreed by kettenis@, guenther@, matthew@.
* Get rid of the very ugly lint workarounds: LINTLIBRARY, PROTOLIB,martynas2013-01-131-8/+1
| | | | and a few empty files for lint to chew on.
* Remove excessive sys/cdefs.h inclusionderaadt2012-12-051-2/+1
| | | | ok guenther millert kettenis
* Trick lint into recording the right prototypes in the llib-lm.lnmartynas2011-05-301-3/+8
| | | | | | | database on platforms without extended-precision floating-point support. Seems like a reasonable approach to millert@.
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-271-5/+1
| | | | | | | unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
* in the old days compiler could not convert decimal constantsmartynas2009-04-111-61/+20
| | | | | | | | | | accurately, hence the tricks in libm, using machine representation of constants. remove kludges and switch to use decimal constants, much simplifying the code. since, the compiler converts them accurately. generated values match on vaxfp discussed with millert@, and miod@ testing todd@, and myself ok millert@
* use sys/cdefs.h; pointed out by theomartynas2008-12-101-2/+2
|
* - 80-bit and quad precision trigonometric and other mostmartynas2008-12-091-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | important functions: acosl, asinl, atanl, atan2l, cosl, sinl, tanl, exp2l, frexpl, ilogbl, ldexpl, logbl, scalbnl, fabsl, hypotl, powl, sqrtl, rintl, copysignl, nanl, fdiml, fmaxl, fminl. mostly taken from freebsd, needed alot of changes to adapt. note, these are all c versions; and are quite slow when architectures have, e.g. sqrt. assembly versions will be added afterwards - make them .weak/__weak_alias to the double precision versions on other archs - no need to have two finites. finite() and finitef() are non-standard 3BSD obsolete versions of isfinite. remove from libm. make them weak_alias in libc to __isfinite and __isfinitef instead. similarly make 3BSD obsolete versions of isinf, isinff, isnan, isnanf weak_aliases to C99's __isinf, __isinff, __isnan, __isnanf - remove unused infinity.c. the c library has infinities for each supported platform - use STRICT_ASSIGN cast hack for _kernel_rem_pio2, so that the double version has a chance of working on i386 with extra precision - avoid storing multiple copies of the pi/2 array, since it won't vary - bump major due to removed finite/finitef. although they will be in libc, which anything is linked to, minor bump might be enough ok millert@. tested by sthen@, jsg@, ajacoutot@, kili@, naddy@
* properly raise inexact; ok millert@martynas2008-07-171-7/+9
|
* cleaning up, no functional changesmartynas2008-06-211-6/+6
| | | | | | | - no support for National 32000, removing ns32000/national ifdefs maze - remove tahoe defs - ansify looks fine to millert@; who also noticed rint removal
* spacing, add rcs ids, no binary changemartynas2008-06-121-31/+32
|
* some cleanup for noieee_src, as asked by millert@: remove fictionalmartynas2008-06-121-0/+1
| | | | | includes, include math.h where needed and remove redundant declarations ok millert@
* - no need for ifdef dance (21), we have isnan, finite for vaxmartynas2008-06-121-3/+4
| | | | | | - TEST_FMOD doesn't belong here, remove - remove ifdef _ANSI_SOURCE and assume it's default ok millert@
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-5/+1
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* scalb() in vax libm is in fact scalbn(), so change the symbol name.miod2002-10-111-2/+2
| | | | | | Only affects vax, which has no shared libraries, so no version change needed for libm. Someone with enough math skills ought to code a real scalb() on a rainy day...
* ^vax^__vax__hugh2000-10-101-5/+5
|
* initial import of NetBSD treederaadt1995-10-181-0/+282