mirror of
https://github.com/fastfloat/fast_float.git
synced 2026-06-15 08:26:08 +08:00
Compare commits
3 Commits
dcb2592b9e
...
208a9c4cee
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
208a9c4cee | ||
|
|
30868f8734 | ||
|
|
8e6edc8ad2 |
@ -207,7 +207,11 @@ using parse_options = parse_options_t<char>;
|
||||
// to a no-op elsewhere (e.g. pre-C++20 MSVC, which has no equivalent hint).
|
||||
#ifdef __has_cpp_attribute
|
||||
#if __has_cpp_attribute(unlikely) >= 201803L
|
||||
#define FASTFLOAT_USE_UNLIKELY_ATTR 1
|
||||
// g++-9 hits hits this branch, but then fails to compile
|
||||
// [[unlikely]]. This happens only with g++-9.
|
||||
#if !defined(__GNUC__) || (__GNUC__ != 9)
|
||||
#define FASTFLOAT_USE_UNLIKELY_ATTR
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user