Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F131544083
D29233.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D29233.diff
View Options
diff --git a/lib/msun/ld80/s_logl.c b/lib/msun/ld80/s_logl.c
--- a/lib/msun/ld80/s_logl.c
+++ b/lib/msun/ld80/s_logl.c
@@ -674,14 +674,14 @@
RETURNSPI(&r);
}
-static const double
-invln10_hi = 4.3429448190317999e-1, /* 0x1bcb7b1526e000.0p-54 */
-invln10_lo = 7.1842412889749798e-14, /* 0x1438ca9aadd558.0p-96 */
-invln10_lo_plus_hi = invln10_lo + invln10_hi,
-invln2_hi = 1.4426950408887933e0, /* 0x171547652b8000.0p-52 */
-invln2_lo = 1.7010652264631490e-13, /* 0x17f0bbbe87fed0.0p-95 */
-invln2_lo_plus_hi = invln2_lo + invln2_hi;
-
+/* Use macros since GCC < 8 rejects static const expressions in initializers. */
+#define invln10_hi 4.3429448190317999e-1 /* 0x1bcb7b1526e000.0p-54 */
+#define invln10_lo 7.1842412889749798e-14 /* 0x1438ca9aadd558.0p-96 */
+#define invln2_hi 1.4426950408887933e0 /* 0x171547652b8000.0p-52 */
+#define invln2_lo 1.7010652264631490e-13 /* 0x17f0bbbe87fed0.0p-95 */
+/* Let the compiler pre-calculate this sum to avoid FE_INEXACT at run time. */
+static const double invln10_lo_plus_hi = invln10_lo + invln10_hi;
+static const double invln2_lo_plus_hi = invln2_lo + invln2_hi;
long double
log10l(long double x)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Oct 10, 3:02 AM (22 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23515656
Default Alt Text
D29233.diff (1 KB)
Attached To
Mode
D29233: lib/msun: Fix x86 GCC6 build after 221622ec0c8e184
Attached
Detach File
Event Timeline
Log In to Comment