isnan was not impmemented on vxWorks
This commit is contained in:
8
src/libCom/osi/os/vxWorks/isnan.c
Normal file
8
src/libCom/osi/os/vxWorks/isnan.c
Normal file
@@ -0,0 +1,8 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user