[cfe-dev] LDBL_EPSILON value

Tim Shen via cfe-dev cfe-dev at lists.llvm.org
Thu Nov 3 01:04:59 PDT 2016


On Wed, Nov 2, 2016, 11:09 Tania A via cfe-dev <cfe-dev at lists.llvm.org>
wrote:

> There has been some discussion surrounding clang's value of LDBL_EPSILON
> (e.g. see Bugzilla 48341).
>
> clang and GCC both use a "best-case" value of 2^-1074 for epsilon whereas
> IBM's clang-based compiler opts to use the more conservative value of
> 2^-105. I would like to reopen a discussion about possibly redefining
> clang's epsilon value.
>

FWIW, on at least powerpc64le, newer GCC seems to define long double as
double by default. I found a page here:
https://gcc.gnu.org/wiki/Ieee128PowerPC


> - TA
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20161103/53372e68/attachment.html>


More information about the cfe-dev mailing list