diff options
author | David Schultz <das@FreeBSD.org> | 2012-01-16 04:05:53 +0000 |
---|---|---|
committer | David Schultz <das@FreeBSD.org> | 2012-01-16 04:05:53 +0000 |
commit | b1d046441de9053152c7cf03d6b60d9882687e1b (patch) | |
tree | f49f535a2f2db035f8401e540a6103d8e9ea9c6a /lib/libc/softfloat | |
parent | c6c72ab9afa42f71f9b7b18c302bb3569b7e0de1 (diff) | |
download | src-b1d046441de9053152c7cf03d6b60d9882687e1b.tar.gz src-b1d046441de9053152c7cf03d6b60d9882687e1b.zip |
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.
Notes
Notes:
svn path=/head/; revision=230189
Diffstat (limited to 'lib/libc/softfloat')
-rw-r--r-- | lib/libc/softfloat/bits32/softfloat.c | 4 | ||||
-rw-r--r-- | lib/libc/softfloat/bits64/softfloat.c | 4 | ||||
-rw-r--r-- | lib/libc/softfloat/softfloat-specialize | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/lib/libc/softfloat/bits32/softfloat.c b/lib/libc/softfloat/bits32/softfloat.c index 7785c4ea11e8..ad7c016bf043 100644 --- a/lib/libc/softfloat/bits32/softfloat.c +++ b/lib/libc/softfloat/bits32/softfloat.c @@ -77,8 +77,8 @@ __FBSDID("$FreeBSD$"); Floating-point rounding mode 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; /* ------------------------------------------------------------------------------- diff --git a/lib/libc/softfloat/bits64/softfloat.c b/lib/libc/softfloat/bits64/softfloat.c index ffd5661d6719..3d614f241320 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 diff --git a/lib/libc/softfloat/softfloat-specialize b/lib/libc/softfloat/softfloat-specialize index e8585cea7f59..2daa90fd252f 100644 --- a/lib/libc/softfloat/softfloat-specialize +++ b/lib/libc/softfloat/softfloat-specialize @@ -58,8 +58,8 @@ substitute a result value. If traps are not implemented, this routine should be simply `float_exception_flags |= flags;'. ------------------------------------------------------------------------------- */ -fp_except float_exception_mask = 0; -void float_raise( fp_except flags ) +int float_exception_mask = 0; +void float_raise( int flags ) { float_exception_flags |= flags; |