use isnan from standard library support
For vxWorks provide implementation
This commit is contained in:
1 parent
11e57aa52d
commit
9ebaf81de3
2 files changed
+1
-11
No files matched your search
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user