History log of /src/lib/libm/src/e_j1f.c |
Revision | | Date | Author | Comments |
1.12 |
| 09-Feb-2017 |
maya | Appease static analyzers by making all code paths which assign values into p,q sane. Get rid of redundant assignment. Indent for legibility. NFC.
This doesn't create a functional difference, as all callers test number >= 0x40000000 anyway.
To see this, note the following: - consistently, hx is the high bits of x, lx is the low bits, x is the float. - & 0x7fffffff zeroes the sign bit, as does fabs.
A case where it isn't easy to see that there's no functional change is y1, which does:
ix = hx & 0x7fffffff (zero signbit of high bits of x) y = fabs(x) (this has a zeroed signbit but otherwise same as x) ix >= 0x40000000 pone(y); qone(y)
qone(x) (also pone) do: ix = hx & 0x7fffffff
ix in qone and in the calling function are the same number, and the comparison applies for both, and ix < 0x40000000 isn't possible.
(Also, no explosions seem to happen when I feed it random numbers)
|
1.11 |
| 20-Aug-2007 |
drochner | branches: 1.11.54; 1.11.58; Add C99 complex support, for double and float. Most complex function implementations are from the "c9x-complex" library, originating from the "cephes" math library, see http://www.netlib.org/cephes/, from Stephen L. Moshier, incorporated and redistributed with the NetBSD license by permission of the author.
Error behaviour and other boundary conditions (branch cuts) need to be looked at.
For namespace sanity, I've done the rename/weak alias procedure to most of the exported functions which are also used internally. Didn't do so for sin/cos(f) yet because assembler implementations use them directly, and renaming functions shared between the main libm and the machine specific "overlay" might raise binary compatibility issues.
|
1.10 |
| 19-Mar-2006 |
christos | Use float constants!
|
1.9 |
| 19-Mar-2006 |
christos | Coverity CID 574: Unreachable code due to incorrect constants. Correct constants according to the comments in the code, and add more comments.
|
1.8 |
| 19-Mar-2006 |
christos | Coverity CID 575: comment out dead code.
|
1.7 |
| 26-May-2002 |
wiz | __STDC__ is always defined on NetBSD.
|
1.6 |
| 02-Jul-1999 |
simonb | More trailing white space.
|
1.5 |
| 09-Oct-1997 |
lukem | rcsid facism, WARNSify
|
1.4 |
| 10-May-1995 |
jtc | Id -> NetBSD
|
1.3 |
| 22-Sep-1994 |
jtc | LIBM_SCCS must be defined for the RCS ID to be defined. This library will soon be used by DJGPP. And since memory is often tight on DOS machines, there is little benifit to be had from including RCS IDs.
|
1.2 |
| 18-Aug-1994 |
jtc | Change int -> int32_t and unsigned int -> u_int32_t to improve portabilty to machines where int != 32 bits.
|
1.1 |
| 10-Aug-1994 |
jtc | Float versions of math functions. From Ian Taylor (ian@cygnus.com), with minor changes by me.
|
1.11.58.1 |
| 21-Apr-2017 |
bouyer | Sync with HEAD
|
1.11.54.1 |
| 20-Mar-2017 |
pgoyette | Sync with HEAD
|