1 //===-- Implementation of math utils --------------------------------------===// 2 // 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 6 // 7 //===----------------------------------------------------------------------===// 8 9 #include "math_utils.h" 10 11 namespace __llvm_libc { 12 13 const float XFlowValues<float>::overflow_value = 14 as_float(0x70000000); // 0x1p97f 15 const float XFlowValues<float>::underflow_value = 16 as_float(0x10000000); // 0x1p97f 17 const float XFlowValues<float>::may_underflow_value = 18 as_float(0x1a200000); // 0x1.4p-75f 19 20 const double XFlowValues<double>::overflow_value = 21 as_double(0x7000000000000000); // 0x1p769 22 const double XFlowValues<double>::underflow_value = 23 as_double(0x1000000000000000); // 0x1p-767 24 const double XFlowValues<double>::may_underflow_value = 25 as_double(0x1e58000000000000); // 0x1.8p-538 26 27 } // namespace __llvm_libc 28