1
//===-- IsNAN.cpp ---------------------------------------------------------===//
3
// The LLVM Compiler Infrastructure
5
// This file is distributed under the University of Illinois Open Source
6
// License. See LICENSE.TXT for details.
8
//===----------------------------------------------------------------------===//
10
// Platform-independent wrapper around C99 isnan().
12
//===----------------------------------------------------------------------===//
14
#include "llvm/Config/config.h"
16
#if HAVE_ISNAN_IN_MATH_H
18
#elif HAVE_ISNAN_IN_CMATH
20
#elif HAVE_STD_ISNAN_IN_CMATH
23
#elif defined(_MSC_VER)
27
# error "Don't know how to get isnan()"
31
int IsNAN(float f) { return isnan(f); }
32
int IsNAN(double d) { return isnan(d); }
33
} // end namespace llvm;