-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatic commit by thirdparty_tool: update fp16 to commit 98b0a46bce…
…017382a6351a19577ec43a715b6835. Used commit of the fp16 repository: https://github.com/Maratyszcza/FP16//commits/98b0a46bce017382a6351a19577ec43a715b6835
- Loading branch information
Showing
5 changed files
with
147 additions
and
148 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,52 @@ | ||
#pragma once | ||
#ifndef FP16_MACROS_H | ||
#define FP16_MACROS_H | ||
|
||
#ifndef FP16_USE_NATIVE_CONVERSION | ||
#if (defined(__INTEL_COMPILER) || defined(__GNUC__)) && defined(__F16C__) | ||
#define FP16_USE_NATIVE_CONVERSION 1 | ||
#elif defined(_MSC_VER) && (defined(_M_IX86) || defined(_M_X64)) && defined(__AVX2__) | ||
#define FP16_USE_NATIVE_CONVERSION 1 | ||
#elif defined(_MSC_VER) && defined(_M_ARM64) | ||
#define FP16_USE_NATIVE_CONVERSION 1 | ||
#elif defined(__GNUC__) && defined(__aarch64__) | ||
#define FP16_USE_NATIVE_CONVERSION 1 | ||
#endif | ||
#if !defined(FP16_USE_NATIVE_CONVERSION) | ||
#define FP16_USE_NATIVE_CONVERSION 0 | ||
#endif // !defined(FP16_USE_NATIVE_CONVERSION) | ||
#endif // !define(FP16_USE_NATIVE_CONVERSION) | ||
|
||
#ifndef FP16_USE_FLOAT16_TYPE | ||
#if !defined(__clang__) && !defined(__INTEL_COMPILER) && defined(__GNUC__) && (__GNUC__ >= 12) | ||
#if defined(__F16C__) | ||
#define FP16_USE_FLOAT16_TYPE 1 | ||
#endif | ||
#endif | ||
#if !defined(FP16_USE_FLOAT16_TYPE) | ||
#define FP16_USE_FLOAT16_TYPE 0 | ||
#endif // !defined(FP16_USE_FLOAT16_TYPE) | ||
#endif // !defined(FP16_USE_FLOAT16_TYPE) | ||
|
||
#ifndef FP16_USE_FP16_TYPE | ||
#if defined(__clang__) | ||
#if defined(__F16C__) || defined(__aarch64__) | ||
#define FP16_USE_FP16_TYPE 1 | ||
#endif | ||
#elif defined(__GNUC__) | ||
#if defined(__aarch64__) | ||
#define FP16_USE_FP16_TYPE 1 | ||
#endif | ||
#endif | ||
#if !defined(FP16_USE_FP16_TYPE) | ||
#define FP16_USE_FP16_TYPE 0 | ||
#endif // !defined(FP16_USE_FP16_TYPE) | ||
#endif // !defined(FP16_USE_FP16_TYPE) | ||
|
||
#endif /* FP16_MACROS_H */ | ||
|
||
// This file is part of the fp16 inline third-party dependency of YugabyteDB. | ||
// Git repo: https://github.com/Maratyszcza/FP16/ | ||
// Git commit: 98b0a46bce017382a6351a19577ec43a715b6835 | ||
// | ||
// See also src/inline-thirdparty/README.md. |
This file was deleted.
Oops, something went wrong.