summaryrefslogtreecommitdiffstats
path: root/lib/msun/i387
Commit message (Collapse)AuthorAgeFilesLines
* Fixed wrong mnemonic `setnel' that gas happened to generate correct objectbde1997-04-301-2/+2
| | | | | | code for. Obtained from: a slightly different fix in NetBSD
* Include <machine/asm.h> instead of kernel-only <machine/asmacros.h>.bde1997-03-0924-48/+48
|
* Revert $FreeBSD$ to $Id$peter1997-02-2224-24/+24
|
* Compute (1 - x^2) as ((1 - x) * (1 + x)) instead of as (1 - x * x) tobde1997-02-202-11/+23
| | | | | | | | | | | | | | | avoid easily avoidable loss of precision when |x| is nearly 1. Extended (64-bit) precision only moves the meaning of "nearly" here. This probably could be done better by splitting up the range into |x| <= 0.5 and |x| > 0.5 like the C version. However, ucbtest does't report any errors in this version. Perhaps the C version should be used anyway. It's only 25% slower now on a P5, provided the C version of sqrt() isn't used, and the C version could be optimized better. Errors checked by: ucbtest
* Fixed the i87 version of exp(). It returned NaN for args +-Inf. It hadbde1997-02-161-0/+42
| | | | | | some small (one or two ULP) inaccuracies. Found by: ucbtest
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-1424-24/+24
| | | | | | | | 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.
* Fixed fiddling with the control word. Use the stack space reserved forbde1996-12-142-12/+12
| | | | that purpose instead of space below the stack.
* Clean up the FPU stack before returning. One stack slot was leaked onbde1996-12-142-2/+4
| | | | | every call. The damage was sometimes limited by other routines using and freeing stack slots that should have been empty to being with.
* Clean up the FP stack before returning. The i387 exp() leaked an FPbde1996-06-011-1/+2
| | | | | register on its first call. Subsequent calls reused the register so the leak didn't accumulate. Fixes PR 1275.
* Don't trash %ebp.bde1996-02-251-2/+2
| | | | Obtained from: NetBSD
* Latest fix from jtc:jkh1994-08-191-2/+13
| | | | | | | | | | | | | The fyl2xp1 instruction has such a limited range: -(1 - (sqrt(2) / 2)) <= x <= sqrt(2) - 1 it's not worth trying to use it. Also, I'm not sure fyl2xp1's extra precision will matter once the result is converted from extended real (80 bits) back to double real (64 bits). Reviewed by: jkh Submitted by: jtc
* Do all the includes: <machine/asm.h> -> <machine/asmacros.h>jkh1994-08-1923-46/+46
| | | | | Reviewed by: Submitted by:
* Change includes to reference <machine/asmacros.h>.jkh1994-08-191-2/+2
| | | | Submitted by: jkh
* J.T. Conklin's latest version of the Sun math library.jkh1994-08-1924-0/+1163
-- 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