summaryrefslogtreecommitdiffstats
path: root/lib/msun/src/e_acosf.c
Commit message (Collapse)AuthorAgeFilesLines
* Minor improvements:das2008-08-031-6/+7
| | | | | | | - Improve the order of some tests. - Fix style. Submitted by: bde
* Fix some problems with asinf(), acosf(), atanf(), and atan2f():das2008-08-011-17/+11
| | | | | | | | | | | | | | | | | | | | | | | | - Adjust several constants for float precision. Some thresholds that were appropriate for double precision were never changed when these routines were converted to float precision. This has an impact on performance but not accuracy. (Submitted by bde.) - Reduce the degrees of the polynomials used. A smaller degree suffices for float precision. - In asinf(), use double arithmetic in part of the calculation to avoid a corner case and some complicated arithmetic involving a division and some buggy constants. This improves performance and accuracy. Max error (ulps): asinf acosf atanf before 0.925 0.782 0.852 after 0.743 0.804 0.852 As bde points out, it's cheaper for asin*() and acos*() to use polynomials instead of rational functions, but that's a task for another day.
* As in other parts of libm, mark a few constants as volatile to preventdas2008-07-311-2/+4
| | | | | | spurious optimizations. gcc doesn't support FENV_ACCESS, so when it folds constants, it assumes that the rounding mode is always the default and floating point exceptions never matter.
* s/rcsid/__FBSDID/das2008-02-221-3/+2
|
* Assume __STDC__, remove non-__STDC__ code.alfred2002-05-281-10/+2
| | | | Submitted by: keramida
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Use __ieee754_sqrt() instead of sqrt() internally. Similarly for thebde1997-03-091-3/+3
| | | | | | float versions. Using sqrt() was inefficient. Obtained from: NetBSD
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Remove trailing whitespace.rgrimes1995-05-301-4/+4
|
* J.T. Conklin's latest version of the Sun math library.jkh1994-08-191-0/+89
-- Begin comments from J.T. Conklin: The most significant improvement is the addition of "float" versions of the math functions that take float arguments, return floats, and do all operations in floating point. This doesn't help (performance) much on the i386, but they are still nice to have. The float versions were orginally done by Cygnus' Ian Taylor when fdlibm was integrated into the libm we support for embedded systems. I gave Ian a copy of my libm as a starting point since I had already fixed a lot of bugs & problems in Sun's original code. After he was done, I cleaned it up a bit and integrated the changes back into my libm. -- End comments Reviewed by: jkh Submitted by: jtc
OpenPOWER on IntegriCloud