summaryrefslogtreecommitdiff
path: root/include/llvm/Support/MathExtras.h
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2004-07-21 03:15:14 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2004-07-21 03:15:14 +0000
commita7d03b466a41e68e11480ae6ca275140fe4c4507 (patch)
treeb3a144a7ae3dc432fa6045b807dd24c93558b9c2 /include/llvm/Support/MathExtras.h
parentc64d41e7063df8598e2eb6d741994292e3baa7cb (diff)
downloadllvm-a7d03b466a41e68e11480ae6ca275140fe4c4507.tar.gz
llvm-a7d03b466a41e68e11480ae6ca275140fe4c4507.tar.bz2
llvm-a7d03b466a41e68e11480ae6ca275140fe4c4507.tar.xz
Add prototypes for platform-independent wrappers for isinf().
Patch contributed by Bill Wendling. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15055 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/MathExtras.h')
-rw-r--r--include/llvm/Support/MathExtras.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Support/MathExtras.h b/include/llvm/Support/MathExtras.h
index f99272282c..d520985487 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