Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys Make the constants describing extended format availa...
details: https://anonhg.NetBSD.org/src/rev/dd6d66073334
branches: trunk
changeset: 326524:dd6d66073334
user: martin <martin%NetBSD.org@localhost>
date: Sat Feb 01 10:41:38 2014 +0000
description:
Make the constants describing extended format available even if we do
not have long doubles.
This fixes the sparc kernel build (which uses the constants in FPU emulation
code).
diffstat:
sys/sys/ieee754.h | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
diffs (44 lines):
diff -r f9b0838cff1c -r dd6d66073334 sys/sys/ieee754.h
--- a/sys/sys/ieee754.h Sat Feb 01 10:00:04 2014 +0000
+++ b/sys/sys/ieee754.h Sat Feb 01 10:41:38 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ieee754.h,v 1.12 2014/02/01 01:34:01 matt Exp $ */
+/* $NetBSD: ieee754.h,v 1.13 2014/02/01 10:41:38 martin Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -119,13 +119,13 @@
#endif
};
-#if __HAVE_LONG_DOUBLE + 0 == 128
-
#define EXT_EXPBITS 15
#define EXT_FRACHBITS 48
#define EXT_FRACLBITS 64
#define EXT_FRACBITS (EXT_FRACLBITS + EXT_FRACHBITS)
+#if __HAVE_LONG_DOUBLE + 0 == 128
+
#define EXT_TO_ARRAY32(u, a) do { \
(a)[0] = (uint32_t)((u).extu_ext.ext_fracl >> 0); \
(a)[1] = (uint32_t)((u).extu_ext.ext_fracl >> 32); \
@@ -160,18 +160,14 @@
*/
#define SNG_EXP_INFNAN 255
#define DBL_EXP_INFNAN 2047
-#if __HAVE_LONG_DOUBLE + 0 == 128
#define EXT_EXP_INFNAN 0x7fff
-#endif
/*
* Exponent biases.
*/
#define SNG_EXP_BIAS 127
#define DBL_EXP_BIAS 1023
-#if __HAVE_LONG_DOUBLE + 0 == 128
#define EXT_EXP_BIAS 16383
-#endif
/*
* Convenience data structures.
Home |
Main Index |
Thread Index |
Old Index