Last change
on this file since 444 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 | |
---|
8 | int |
---|
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 | |
---|
19 | int |
---|
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.