summaryrefslogtreecommitdiff
path: root/src/cuda-sim/cuda-math.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cuda-sim/cuda-math.h')
-rw-r--r--src/cuda-sim/cuda-math.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/cuda-sim/cuda-math.h b/src/cuda-sim/cuda-math.h
index b4502a1..4721e8a 100644
--- a/src/cuda-sim/cuda-math.h
+++ b/src/cuda-sim/cuda-math.h
@@ -336,11 +336,6 @@ float __powf(float a, float b)
// math functions missing in Mac OSX GCC
#ifdef __APPLE__
-int isnanf(float a)
-{
- return (isnan(a));
-}
-
int __signbitd(double d)
{
unsigned long long int u = *((unsigned long long int*)&d);
@@ -353,8 +348,17 @@ int __signbitd(double d)
#include <math_functions.h>
#undef __CUDA_INTERNAL_COMPILATION__
#undef __attribute__
+
#endif
}
+// math functions missing in Mac OSX GCC
+#ifdef __APPLE__
+int isnanf(float a)
+{
+ return (isnan(a));
+}
+#endif
+
#endif