From: Brian Gaeke Date: Wed, 23 Jun 2004 00:25:24 +0000 (+0000) Subject: Provide prototypes for IsNAN() wrapper. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7764f4b2e0e550dc23f3c536f236f9abf86879dc;p=oota-llvm.git Provide prototypes for IsNAN() wrapper. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14339 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/Support/MathExtras.h b/include/Support/MathExtras.h index 1540de3fcab..f99272282ce 100644 --- a/include/Support/MathExtras.h +++ b/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 diff --git a/include/llvm/Support/MathExtras.h b/include/llvm/Support/MathExtras.h index 1540de3fcab..f99272282ce 100644 --- a/include/llvm/Support/MathExtras.h +++ b/include/llvm/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