summaryrefslogtreecommitdiff
path: root/lib/libm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libm')
-rw-r--r--lib/libm/src/ld128/s_exp2l.c3
-rw-r--r--lib/libm/src/ld80/s_exp2l.c3
-rw-r--r--lib/libm/src/s_nan.c8
3 files changed, 6 insertions, 8 deletions
diff --git a/lib/libm/src/ld128/s_exp2l.c b/lib/libm/src/ld128/s_exp2l.c
index 1bba73bb688..9b68a1a477f 100644
--- a/lib/libm/src/ld128/s_exp2l.c
+++ b/lib/libm/src/ld128/s_exp2l.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: s_exp2l.c,v 1.1 2008/12/09 20:00:35 martynas Exp $ */
+/* $OpenBSD: s_exp2l.c,v 1.2 2014/07/21 01:51:11 guenther Exp $ */
/*-
* Copyright (c) 2005-2008 David Schultz <das@FreeBSD.ORG>
* All rights reserved.
@@ -26,7 +26,6 @@
*/
#include <sys/types.h>
-#include <sys/endian.h>
#include <machine/ieee.h>
#include <float.h>
#include <math.h>
diff --git a/lib/libm/src/ld80/s_exp2l.c b/lib/libm/src/ld80/s_exp2l.c
index b84dc955f66..edcbc8e1839 100644
--- a/lib/libm/src/ld80/s_exp2l.c
+++ b/lib/libm/src/ld80/s_exp2l.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: s_exp2l.c,v 1.2 2008/12/22 05:22:27 miod Exp $ */
+/* $OpenBSD: s_exp2l.c,v 1.3 2014/07/21 01:51:11 guenther Exp $ */
/*-
* Copyright (c) 2005-2008 David Schultz <das@FreeBSD.ORG>
* All rights reserved.
@@ -26,7 +26,6 @@
*/
#include <sys/types.h>
-#include <sys/endian.h>
#include <machine/ieee.h>
#include <float.h>
#include <math.h>
diff --git a/lib/libm/src/s_nan.c b/lib/libm/src/s_nan.c
index 0179df446a1..33628c82390 100644
--- a/lib/libm/src/s_nan.c
+++ b/lib/libm/src/s_nan.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: s_nan.c,v 1.12 2013/11/22 18:27:25 deraadt Exp $ */
+/* $OpenBSD: s_nan.c,v 1.13 2014/07/21 01:51:11 guenther Exp $ */
/*-
* Copyright (c) 2007 David Schultz
* All rights reserved.
@@ -28,8 +28,8 @@
*/
#include <sys/types.h>
-#include <sys/endian.h>
#include <ctype.h>
+#include <endian.h>
#include <float.h>
#include <math.h>
#include <stdint.h>
@@ -81,7 +81,7 @@ _scan_nan(uint32_t *words, int num_words, const char *s)
;
/* Scan backwards, filling in the bits in words[] as we go. */
-#if _BYTE_ORDER == _LITTLE_ENDIAN
+#if BYTE_ORDER == LITTLE_ENDIAN
for (bitpos = 0; bitpos < 32 * num_words; bitpos += 4) {
#else
for (bitpos = 32 * num_words - 4; bitpos >= 0; bitpos -= 4) {
@@ -101,7 +101,7 @@ nan(const char *s)
} u;
_scan_nan(u.bits, 2, s);
-#if _BYTE_ORDER == _LITTLE_ENDIAN
+#if BYTE_ORDER == LITTLE_ENDIAN
u.bits[1] |= 0x7ff80000;
#else
u.bits[0] |= 0x7ff80000;