summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJeff Epler <jepler@gmail.com>2020-02-04 09:41:22 -0600
committerJeff Epler <jepler@unpythonic.net>2020-02-27 08:30:12 -0600
commit41e71485af4f708c865e7878fe6f8f8aff61d175 (patch)
treea493f4f0d7ffc7186b0771eef34f59fb0c19702c /lib
parent1b33cd11fc788bd6b45b54c5629a3b98a92efc2a (diff)
libm: Disable float-equal diagnostics
I choose to believe these authors knew what they were doing.
Diffstat (limited to 'lib')
-rw-r--r--lib/libm/erf_lgamma.c1
-rw-r--r--lib/libm/log1pf.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/lib/libm/erf_lgamma.c b/lib/libm/erf_lgamma.c
index 877816a0c..fcb1d0a0c 100644
--- a/lib/libm/erf_lgamma.c
+++ b/lib/libm/erf_lgamma.c
@@ -24,6 +24,7 @@
*/
#include "fdlibm.h"
+#pragma GCC diagnostic ignored "-Wfloat-equal"
#define __ieee754_logf logf
diff --git a/lib/libm/log1pf.c b/lib/libm/log1pf.c
index 0d32b0a2f..89ed250b0 100644
--- a/lib/libm/log1pf.c
+++ b/lib/libm/log1pf.c
@@ -18,6 +18,8 @@
#include "libm.h"
+#pragma GCC diagnostic ignored "-Wfloat-equal"
+
static const float
ln2_hi = 6.9313812256e-01, /* 0x3f317180 */
ln2_lo = 9.0580006145e-06, /* 0x3717f7d1 */