[libcxx-commits] [PATCH] D116338: Set std::numeric_limits<>::tinyness_before to true for floating point types on ARM platforms.

Eric Fiselier via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue Feb 22 10:39:13 PST 2022


EricWF accepted this revision.
EricWF added inline comments.
This revision is now accepted and ready to land.


================
Comment at: libcxx/include/limits:342
     static _LIBCPP_CONSTEXPR const bool traps = false;
+#if (defined(__arm__) || defined(__aarch64__))
+    static _LIBCPP_CONSTEXPR const bool tinyness_before = true;
----------------
Instead of each of these ifdefs could we maybe do something like

```
#if defined(arm or w/e)
#define _LIBCPP_TINYNESS_BEFORE true
#else
#define _LIBCPP_TINYNESS_BEFORE false
#endif
```

Then we can undef it at the end of the header.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D116338/new/

https://reviews.llvm.org/D116338



More information about the libcxx-commits mailing list