]> git.ipfire.org Git - thirdparty/glibc.git/commit
stdlib: Fix macro expansion producing 'defined' has undefined behavior
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 9 Mar 2022 18:36:53 +0000 (15:36 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 30 Aug 2022 11:40:47 +0000 (08:40 -0300)
commit6c4ee1aba17f1e71b9ec856479260de9d362fdb6
treeb26c5e53ebc892d5b63012a8a3e851406d499b1d
parente57d8fc97b90127de4ed3e3a9cdf663667580935
stdlib: Fix macro expansion producing 'defined' has undefined behavior

The FPIOCONST_HAVE_EXTENDED_RANGE is defined as:

  #define FPIOCONST_HAVE_EXTENDED_RANGE \
    ((!defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024) \
    || __HAVE_DISTINCT_FLOAT128)

Which is undefined behavior accordingly to C Standard (Preprocessing
directives, p4).

Checked on x86_64-linux-gnu.
stdlib/fpioconst.h