diff --git a/include/Support/MathExtras.h b/include/Support/MathExtras.h index f99272282ce..d5209854877 100644 --- a/include/Support/MathExtras.h +++ b/include/Support/MathExtras.h @@ -43,6 +43,10 @@ inline bool isPowerOf2(int64_t C, unsigned &getPow) { int IsNAN (float f); int IsNAN (double d); +// Platform-independent wrappers for the C99 isinf() function. +int IsInf (float f); +int IsInf (double d); + } // End llvm namespace #endif diff --git a/include/llvm/Support/MathExtras.h b/include/llvm/Support/MathExtras.h index f99272282ce..d5209854877 100644 --- a/include/llvm/Support/MathExtras.h +++ b/include/llvm/Support/MathExtras.h @@ -43,6 +43,10 @@ inline bool isPowerOf2(int64_t C, unsigned &getPow) { int IsNAN (float f); int IsNAN (double d); +// Platform-independent wrappers for the C99 isinf() function. +int IsInf (float f); +int IsInf (double d); + } // End llvm namespace #endif