From 7764f4b2e0e550dc23f3c536f236f9abf86879dc Mon Sep 17 00:00:00 2001 From: Brian Gaeke Date: Wed, 23 Jun 2004 00:25:24 +0000 Subject: [PATCH] Provide prototypes for IsNAN() wrapper. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14339 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/Support/MathExtras.h | 4 ++++ include/llvm/Support/MathExtras.h | 4 ++++ 2 files changed, 8 insertions(+) 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