diff options
author | das <das@FreeBSD.org> | 2012-01-16 04:05:53 +0000 |
---|---|---|
committer | das <das@FreeBSD.org> | 2012-01-16 04:05:53 +0000 |
commit | d6b9b99e3b746f56d63b97b226e6828b26953d3a (patch) | |
tree | f49f535a2f2db035f8401e540a6103d8e9ea9c6a /lib/libc/softfloat/bits64/softfloat.c | |
parent | b2eac838ccdcf3c8f2a5f094f46aaf83b3b8538f (diff) | |
download | FreeBSD-src-d6b9b99e3b746f56d63b97b226e6828b26953d3a.zip FreeBSD-src-d6b9b99e3b746f56d63b97b226e6828b26953d3a.tar.gz |
Convert softfloat to use the standard exception flag and rounding macros
in fenv.h instead of the non-standard and incomplete ones in ieeefp.h.
Thanks to Ian Lepore for testing this patch.
Diffstat (limited to 'lib/libc/softfloat/bits64/softfloat.c')
-rw-r--r-- | lib/libc/softfloat/bits64/softfloat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/softfloat/bits64/softfloat.c b/lib/libc/softfloat/bits64/softfloat.c index ffd5661..3d614f2 100644 --- a/lib/libc/softfloat/bits64/softfloat.c +++ b/lib/libc/softfloat/bits64/softfloat.c @@ -71,8 +71,8 @@ Floating-point rounding mode, extended double-precision rounding precision, and exception flags. ------------------------------------------------------------------------------- */ -fp_rnd_t float_rounding_mode = float_round_nearest_even; -fp_except float_exception_flags = 0; +int float_rounding_mode = float_round_nearest_even; +int float_exception_flags = 0; #ifdef FLOATX80 int8 floatx80_rounding_precision = 80; #endif |