summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/Support/MathExtras.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/include/Support/MathExtras.h b/llvm/include/Support/MathExtras.h
index 1540de3fcab..f99272282ce 100644
--- a/llvm/include/Support/MathExtras.h
+++ b/llvm/include/Support/MathExtras.h
@@ -39,6 +39,10 @@ inline bool isPowerOf2(int64_t C, unsigned &getPow) {
return false;
}
+// Platform-independent wrappers for the C99 isnan() function.
+int IsNAN (float f);
+int IsNAN (double d);
+
} // End llvm namespace
#endif
OpenPOWER on IntegriCloud