source: trunk/libs/newlib/src/newlib/libm/common/sf_isinff.c @ 567

Last change on this file since 567 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 354 bytes
Line 
1/*
2 * __isinff(x) returns 1 if x is +-infinity, else 0;
3 * Added by Cygnus Support.
4 */
5
6#include "fdlibm.h"
7
8int
9__isinff (float x)
10{
11        __int32_t ix;
12        GET_FLOAT_WORD(ix,x);
13        ix &= 0x7fffffff;
14        return FLT_UWORD_IS_INFINITE(ix);
15}
16
17#ifdef _DOUBLE_IS_32BITS
18
19int
20__isinfd (double x)
21{
22        return __isinff((float) x);
23}
24
25#endif /* defined(_DOUBLE_IS_32BITS) */
Note: See TracBrowser for help on using the repository browser.