[cfe-dev] LDBL_EPSILON value

Joerg Sonnenberger via cfe-dev cfe-dev at lists.llvm.org
Wed Nov 2 14:12:29 PDT 2016


On Wed, Nov 02, 2016 at 02:08:56PM -0400, Tania A via cfe-dev wrote:
> There has been some discussion surrounding clang's value of LDBL_EPSILON
> (e.g. see Bugzilla 48341).

It would help if you mentioned that this is a GCC bug number, not a
LLVM bug number.

> 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.

I don't see anything wrong with Joseph's reasoning. Double-Double is
obnoxious and irregular in a number of important ways and this just
seems to be one of them.

Joerg



More information about the cfe-dev mailing list