1//===-- MathExtras.cpp - Implement the MathExtras header --------------===//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7//===----------------------------------------------------------------------===//
9// This file implements the MathExtras.h header
11//===----------------------------------------------------------------------===//
24 // Visual Studio defines the HUGE_VAL class of macros using purposeful
25 // constant arithmetic overflow, which it then warns on when encountered.
26 const float huge_valf = std::numeric_limits<float>::infinity();
This is an optimization pass for GlobalISel generic memory operations.
LLVM_ABI const float huge_valf
Use this rather than HUGE_VALF; the latter causes warnings on MSVC.