• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //===-- llvm/Support/float128.h - Compiler abstraction support --*- C++ -*-===//
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 #ifndef LLVM_FLOAT128
10 #define LLVM_FLOAT128
11 
12 #include <cmath>
13 
14 namespace llvm {
15 
16 #ifdef HAS_LOGF128
17 #if !defined(__LONG_DOUBLE_IBM128__) && (__SIZEOF_INT128__ == 16)
18 typedef decltype(logf128(0.)) float128;
19 #define HAS_IEE754_FLOAT128
20 #endif
21 #endif // HAS_LOGF128
22 
23 } // namespace llvm
24 #endif // LLVM_FLOAT128
25