isnan was not impmemented on vxWorks
This commit is contained in:
1 parent
8a99fac979
commit
11e57aa52d
1 file changed
+8
@@ -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