1 //===-- Platform specific macro definitions ---------------------*- 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_LIBC_UTILS_FPUTIL_PLATFORM_DEFS_H 10 #define LLVM_LIBC_UTILS_FPUTIL_PLATFORM_DEFS_H 11 12 #if defined(__x86_64__) || defined(__i386__) 13 #define X87_FPU 14 #endif 15 16 #if defined(_WIN32) 17 #define LONG_DOUBLE_IS_DOUBLE 18 #endif 19 20 #if !defined(LONG_DOUBLE_IS_DOUBLE) && defined(X87_FPU) 21 #define SPECIAL_X86_LONG_DOUBLE 22 #endif 23 24 #endif // LLVM_LIBC_UTILS_FPUTIL_PLATFORM_DEFS_H 25