summaryrefslogtreecommitdiffstats
path: root/lib/libm/src/ld80/s_expm1l.c
diff options
context:
space:
mode:
authormartynas <martynas@openbsd.org>2011-07-20 21:02:51 +0000
committermartynas <martynas@openbsd.org>2011-07-20 21:02:51 +0000
commit9fc1328242ddaa1ce1b291ba3cac4e2e6ecb0c1c (patch)
tree0007a7bc5bec14114108805415a13cccd795f009 /lib/libm/src/ld80/s_expm1l.c
parentDuring mailbox and special file checks, skip all files that can't (diff)
downloadwireguard-openbsd-9fc1328242ddaa1ce1b291ba3cac4e2e6ecb0c1c.tar.xz
wireguard-openbsd-9fc1328242ddaa1ce1b291ba3cac4e2e6ecb0c1c.zip
- Make constants const.
- Fix aliasing issue in s_frexpf.c; spotted by gcc. Many other ones were fixed in NetBSD long ago, but this one was forgotten. It looks like recently they fixed it too.
Diffstat (limited to 'lib/libm/src/ld80/s_expm1l.c')
-rw-r--r--lib/libm/src/ld80/s_expm1l.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libm/src/ld80/s_expm1l.c b/lib/libm/src/ld80/s_expm1l.c
index b9397494129..06b053964f4 100644
--- a/lib/libm/src/ld80/s_expm1l.c
+++ b/lib/libm/src/ld80/s_expm1l.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: s_expm1l.c,v 1.1 2011/07/06 00:02:42 martynas Exp $ */
+/* $OpenBSD: s_expm1l.c,v 1.2 2011/07/20 21:02:51 martynas Exp $ */
/*
* Copyright (c) 2008 Stephen L. Moshier <steve@moshier.net>
@@ -59,13 +59,13 @@
#include <math.h>
-static long double MAXLOGL = 1.1356523406294143949492E4L;
+static const long double MAXLOGL = 1.1356523406294143949492E4L;
/* exp(x) - 1 = x + 0.5 x^2 + x^3 P(x)/Q(x)
-.5 ln 2 < x < .5 ln 2
Theoretical peak relative error = 3.4e-22 */
-static long double
+static const long double
P0 = -1.586135578666346600772998894928250240826E4L,
P1 = 2.642771505685952966904660652518429479531E3L,
P2 = -3.423199068835684263987132888286791620673E2L,