From 750afe93fd15fafc20b6c34d30f339547d15c2d1 Mon Sep 17 00:00:00 2001 From: bellard Date: Sat, 28 Oct 2006 19:27:11 +0000 Subject: avoid using char when it is not necessary git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2204 c046a42c-6fe2-441c-8c8c-71466251a162 --- fpu/softfloat-specialize.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'fpu/softfloat-specialize.h') diff --git a/fpu/softfloat-specialize.h b/fpu/softfloat-specialize.h index d430f58..f9b6f0c 100644 --- a/fpu/softfloat-specialize.h +++ b/fpu/softfloat-specialize.h @@ -68,7 +68,7 @@ typedef struct { | otherwise returns 0. *----------------------------------------------------------------------------*/ -flag float32_is_nan( float32 a ) +int float32_is_nan( float32 a ) { return ( 0xFF000000 < (bits32) ( a<<1 ) ); @@ -80,7 +80,7 @@ flag float32_is_nan( float32 a ) | NaN; otherwise returns 0. *----------------------------------------------------------------------------*/ -flag float32_is_signaling_nan( float32 a ) +int float32_is_signaling_nan( float32 a ) { return ( ( ( a>>22 ) & 0x1FF ) == 0x1FE ) && ( a & 0x003FFFFF ); @@ -161,7 +161,7 @@ static float32 propagateFloat32NaN( float32 a, float32 b STATUS_PARAM) | otherwise returns 0. *----------------------------------------------------------------------------*/ -flag float64_is_nan( float64 a ) +int float64_is_nan( float64 a ) { return ( LIT64( 0xFFE0000000000000 ) < (bits64) ( a<<1 ) ); @@ -173,7 +173,7 @@ flag float64_is_nan( float64 a ) | NaN; otherwise returns 0. *----------------------------------------------------------------------------*/ -flag float64_is_signaling_nan( float64 a ) +int float64_is_signaling_nan( float64 a ) { return @@ -264,7 +264,7 @@ static float64 propagateFloat64NaN( float64 a, float64 b STATUS_PARAM) | NaN; otherwise returns 0. *----------------------------------------------------------------------------*/ -flag floatx80_is_nan( floatx80 a ) +int floatx80_is_nan( floatx80 a ) { return ( ( a.high & 0x7FFF ) == 0x7FFF ) && (bits64) ( a.low<<1 ); @@ -276,7 +276,7 @@ flag floatx80_is_nan( floatx80 a ) | signaling NaN; otherwise returns 0. *----------------------------------------------------------------------------*/ -flag floatx80_is_signaling_nan( floatx80 a ) +int floatx80_is_signaling_nan( floatx80 a ) { bits64 aLow; @@ -371,7 +371,7 @@ static floatx80 propagateFloatx80NaN( floatx80 a, floatx80 b STATUS_PARAM) | otherwise returns 0. *----------------------------------------------------------------------------*/ -flag float128_is_nan( float128 a ) +int float128_is_nan( float128 a ) { return @@ -385,7 +385,7 @@ flag float128_is_nan( float128 a ) | signaling NaN; otherwise returns 0. *----------------------------------------------------------------------------*/ -flag float128_is_signaling_nan( float128 a ) +int float128_is_signaling_nan( float128 a ) { return -- cgit v1.1