Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[libc] Add few macro definitions to make it easy to accommodate Windows.
The new macro definitions have been used to add Windows specific specializations.
- Loading branch information
Siva Chandra Reddy
committed
Jun 18, 2021
1 parent
3105333
commit 37afd67
Showing
6 changed files
with
49 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
//===-- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters