Files
clang-p2996/libc/utils/FPUtil/PlatformDefs.h
Siva Chandra Reddy 37afd67c38 [libc] Add few macro definitions to make it easy to accommodate Windows.
The new macro definitions have been used to add Windows specific
specializations.
2021-06-18 07:17:36 +00:00

25 lines
756 B
C++

//===-- Platform specific macro definitions ---------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_LIBC_UTILS_FPUTIL_PLATFORM_DEFS_H
#define LLVM_LIBC_UTILS_FPUTIL_PLATFORM_DEFS_H
#if defined(__x86_64__) || defined(__i386__)
#define X87_FPU
#endif
#if defined(_WIN32) || defined(_WIN64)
#define LONG_DOUBLE_IS_DOUBLE
#endif
#if !defined(LONG_DOUBLE_IS_DOUBLE) && defined(X87_FPU)
#define SPECIAL_X86_LONG_DOUBLE
#endif
#endif // LLVM_LIBC_UTILS_FPUTIL_PLATFORM_DEFS_H