bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

float: fix LDBL_MIN value on FreeBSD/x86


From: Bruno Haible
Subject: float: fix LDBL_MIN value on FreeBSD/x86
Date: Thu, 17 Aug 2017 21:33:01 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-91-generic; KDE/5.18.0; x86_64; ; )

On FreeBSD/x86, I'm seeing this test failure:


FAIL: test-float
================

../../gltests/test-float.c:334: assertion 'm == x' failed
FAIL test-float (exit status: 134)


It's caused by gnulib itself. Here's the fix:


2017-08-17  Bruno Haible  <address@hidden>

        float: Fix LDBL_MIN value on FreeBSD/x86.
        * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.

diff --git a/lib/float.in.h b/lib/float.in.h
index b51aafe..8105d11 100644
--- a/lib/float.in.h
+++ b/lib/float.in.h
@@ -81,7 +81,7 @@
 # define LDBL_MAX_EXP    16384
 /* Minimum positive normalized number.  */
 # undef LDBL_MIN
-# define LDBL_MIN        3.3621031431120935E-4932L /* = 0x1p-16382L */
+# define LDBL_MIN        3.362103143112093506262677817321752E-4932L /* = 
0x1p-16382L */
 /* Maximum representable finite number.  */
 # undef LDBL_MAX
 /* LDBL_MAX is represented as { 0xFFFFFFFF, 0xFFFFFFFF, 32766 }.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]