use isnan from standard library support

For vxWorks provide implementation
This commit is contained in:
Marty Kraimer committed 2001-07-26 15:47:12 +00:00
1 parent 11e57aa52d
commit 9ebaf81de3
2 files changed
+1 -11

No files matched your search

+1
View File
@@ -205,6 +205,7 @@ SRCS_RTEMS += rtems_util.c
# For vxWorks a clock
INC_vxWorks += iocClock.h
SRCS_vxWorks += iocClock.c
SRCS_vxWorks += isnan.c
# Library to build:
# lib$(LIBRARY).a or ..dll/..exp/..lib
-11
View File
@@ -72,17 +72,6 @@
static double local_random(void);
#ifndef isnan
static int isnan(double d)
{
union { long l[2]; double d; } u;
u.d = d;
if ((u.l[0] & 0x7ff00000) != 0x7ff00000) return(0);
if (u.l[1] || (u.l[0] & 0x000fffff)) return(1);
return(0);
}
#endif
#define myNINT(a) ((int)((a) >= 0 ? (a)+0.5 : (a)-0.5))
#ifndef PI
#define PI 3.141592654