From 9ebaf81de3f52ae546781d63c21a89a75374de97 Mon Sep 17 00:00:00 2001 From: Marty Kraimer Date: Thu, 26 Jul 2001 15:47:12 +0000 Subject: [PATCH] use isnan from standard library support For vxWorks provide implementation --- src/libCom/Makefile | 1 + src/libCom/calc/sCalcPerform.c | 11 ----------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/src/libCom/Makefile b/src/libCom/Makefile index 1b4be6e62..9b4ef882b 100644 --- a/src/libCom/Makefile +++ b/src/libCom/Makefile @@ -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 diff --git a/src/libCom/calc/sCalcPerform.c b/src/libCom/calc/sCalcPerform.c index 7a9afab23..56c39ae99 100644 --- a/src/libCom/calc/sCalcPerform.c +++ b/src/libCom/calc/sCalcPerform.c @@ -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