diff options
author | 2011-07-20 21:02:51 +0000 | |
---|---|---|
committer | 2011-07-20 21:02:51 +0000 | |
commit | 9fc1328242ddaa1ce1b291ba3cac4e2e6ecb0c1c (patch) | |
tree | 0007a7bc5bec14114108805415a13cccd795f009 /lib/libm/src/ld128/e_expl.c | |
parent | During mailbox and special file checks, skip all files that can't (diff) | |
download | wireguard-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/ld128/e_expl.c')
-rw-r--r-- | lib/libm/src/ld128/e_expl.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libm/src/ld128/e_expl.c b/lib/libm/src/ld128/e_expl.c index 6ef65e83a04..3fe3ccd3d39 100644 --- a/lib/libm/src/ld128/e_expl.c +++ b/lib/libm/src/ld128/e_expl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: e_expl.c,v 1.1 2011/07/06 00:02:42 martynas Exp $ */ +/* $OpenBSD: e_expl.c,v 1.2 2011/07/20 21:02:51 martynas Exp $ */ /* * Copyright (c) 2008 Stephen L. Moshier <steve@moshier.net> @@ -95,12 +95,12 @@ static long double Q[6] = { 2.000000000000000000000000000000000000150E0L }; /* C1 + C2 = ln 2 */ -static long double C1 = -6.93145751953125E-1L; -static long double C2 = -1.428606820309417232121458176568075500134E-6L; +static const long double C1 = -6.93145751953125E-1L; +static const long double C2 = -1.428606820309417232121458176568075500134E-6L; -static long double LOG2EL = 1.442695040888963407359924681001892137426646L; -static long double MAXLOGL = 1.1356523406294143949491931077970764891253E4L; -static long double MINLOGL = -1.143276959615573793352782661133116431383730e4L; +static const long double LOG2EL = 1.442695040888963407359924681001892137426646L; +static const long double MAXLOGL = 1.1356523406294143949491931077970764891253E4L; +static const long double MINLOGL = -1.143276959615573793352782661133116431383730e4L; static const long double huge = 0x1p10000L; #if 0 /* XXX Prevent gcc from erroneously constant folding this. */ static const long double twom10000 = 0x1p-10000L; |