1 //===-- MathExtras.cpp - Implement the MathExtras header --------------===//
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 // This file implements the MathExtras.h header
12 //===----------------------------------------------------------------------===//
14 #include "llvm/Support/MathExtras.h"
25 // Visual Studio defines the HUGE_VAL class of macros using purposeful
26 // constant arithmetic overflow, which it then warns on when encountered.
27 const float huge_valf
= std::numeric_limits
<float>::infinity();
29 const float huge_valf
= HUGE_VALF
;