From a7d03b466a41e68e11480ae6ca275140fe4c4507 Mon Sep 17 00:00:00 2001 From: Brian Gaeke Date: Wed, 21 Jul 2004 03:15:14 +0000 Subject: [PATCH] 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 --- 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 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 -- 2.34.1