mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-22 00:38:06 +08:00
2010-02-11 Craig Howland <howland@LGSInnovations.com>
* libc/include/machine/ieeefp.h: isfinite macro modified to run faster by only calling fpclassify once instead of possibly twice.
This commit is contained in:
parent
451a8eb09a
commit
45c8c6469a
@ -1,3 +1,8 @@
|
|||||||
|
2010-02-11 Craig Howland <howland@LGSInnovations.com>
|
||||||
|
|
||||||
|
* libc/include/machine/ieeefp.h: isfinite macro modified to run faster
|
||||||
|
by only calling fpclassify once instead of possibly twice.
|
||||||
|
|
||||||
2010-02-11 Craig Howland <howland@LGSInnovations.com>
|
2010-02-11 Craig Howland <howland@LGSInnovations.com>
|
||||||
|
|
||||||
* libm/common/s_ilogb.c: Adjust documentation to reflect new returns
|
* libm/common/s_ilogb.c: Adjust documentation to reflect new returns
|
||||||
|
@ -80,10 +80,11 @@
|
|||||||
#ifdef __SPU__
|
#ifdef __SPU__
|
||||||
#define __IEEE_BIG_ENDIAN
|
#define __IEEE_BIG_ENDIAN
|
||||||
|
|
||||||
#define isfinite(y) \
|
#define isfinite(__y) \
|
||||||
(__extension__ ({__typeof__(y) __y = (y); \
|
(__extension__ ({int __cy; \
|
||||||
(sizeof (__y) == sizeof (float)) ? (1) : \
|
(sizeof (__y) == sizeof (float)) ? (1) : \
|
||||||
fpclassify(__y) != FP_INFINITE && fpclassify(__y) != FP_NAN;}))
|
(__cy = fpclassify(__y)) != FP_INFINITE && __cy != FP_NAN;}))
|
||||||
|
|
||||||
#define isinf(__x) ((sizeof (__x) == sizeof (float)) ? (0) : __isinfd(__x))
|
#define isinf(__x) ((sizeof (__x) == sizeof (float)) ? (0) : __isinfd(__x))
|
||||||
#define isnan(__x) ((sizeof (__x) == sizeof (float)) ? (0) : __isnand(__x))
|
#define isnan(__x) ((sizeof (__x) == sizeof (float)) ? (0) : __isnand(__x))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user