[libcxx-commits] [PATCH] D64105: libc++: add _LIBCPP_HAS_NO_LONG_DOUBLE

Mikhail Maltsev via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu Jul 4 03:38:26 PDT 2019


miyuki added a comment.

We have a similar problem with our port of libc++ and we also had to conditionalize all uses of `long double` downstream. Here is a list of files that we had to change: https://pastebin.com/5tTcSYxW
As you see, most of them are tests.
Another problem with `long double` is that it is used in a couple of places not strictly requiring it (`include/locale`, `include/__mutex_base` and `include/thread`), in those cases we introduced a `_LIBCPP_LONGEST_DOUBLE` macro which is defined to either `double` or `long double` depending on the availability of the latter.


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

https://reviews.llvm.org/D64105





More information about the libcxx-commits mailing list