diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-09-01 15:00:54 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-09-01 15:00:54 +0000 |
commit | 557ea04ce0e505c98d4b6852b194d7ed06fe8289 (patch) | |
tree | 0fc0a3a14016dd917d5174e1a355f6ba76a2f508 /test/stdlib | |
parent | e4668543352aa58a0aaa03fe9624daa75fd6da34 (diff) |
Atsushi Nemoto writes:
I found math fpclassify function is broken because FP_XXX definitions
in libm/fp_private.h is incompatible with include/math.h.
Also I noticed fp_private.h and fpmacros.c use many 'long int' for
32bit variables. I think these should be int or u_int32_t.
Here is a patch against 0.9.20.
fp_private.c:
--- fix union members (use u_int32_t instead of 'unsigned long int').
--- remove incompatible FP_XXX definitions (and some unused macros).
fpmacros.c:
--- use FP_NAN instead of FP_QNAN/FP_SNAN.
--- use correct type (int instead of long int).
--- fix union members (use u_int32_t instead of 'unsigned long int').
--- remove unnecessary cast.
Note that I had to remove weak_alias for isnanl,isinfl to compile
patched fpmacroc.c. Is this really needed? Original behavior (using
isnan for isnanl) seems problematic anyway.
Diffstat (limited to 'test/stdlib')
0 files changed, 0 insertions, 0 deletions