Module Name: src Committed By: martin Date: Sat Feb 1 10:41:38 UTC 2014
Modified Files: src/sys/sys: ieee754.h Log Message: 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). To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/sys/sys/ieee754.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/sys/ieee754.h diff -u src/sys/sys/ieee754.h:1.12 src/sys/sys/ieee754.h:1.13 --- src/sys/sys/ieee754.h:1.12 Sat Feb 1 01:34:01 2014 +++ src/sys/sys/ieee754.h Sat Feb 1 10:41:38 2014 @@ -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 @@ struct ieee_double { #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 @@ struct ieee_ext { */ #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.