Commit 924b2c07cdfaba9ac408fc5fa77da75a570f9dc5
1 parent
471ea271
Add proper float*_is_nan prototypes.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2902 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
2 changed files
with
4 additions
and
2 deletions
fpu/softfloat.h
@@ -242,8 +242,8 @@ int float32_le_quiet( float32, float32 STATUS_PARAM ); | @@ -242,8 +242,8 @@ int float32_le_quiet( float32, float32 STATUS_PARAM ); | ||
242 | int float32_lt_quiet( float32, float32 STATUS_PARAM ); | 242 | int float32_lt_quiet( float32, float32 STATUS_PARAM ); |
243 | int float32_compare( float32, float32 STATUS_PARAM ); | 243 | int float32_compare( float32, float32 STATUS_PARAM ); |
244 | int float32_compare_quiet( float32, float32 STATUS_PARAM ); | 244 | int float32_compare_quiet( float32, float32 STATUS_PARAM ); |
245 | +int float32_is_nan( float32 ); | ||
245 | int float32_is_signaling_nan( float32 ); | 246 | int float32_is_signaling_nan( float32 ); |
246 | -int float64_is_nan( float64 a ); | ||
247 | 247 | ||
248 | INLINE float32 float32_abs(float32 a) | 248 | INLINE float32 float32_abs(float32 a) |
249 | { | 249 | { |
@@ -293,6 +293,7 @@ int float64_le_quiet( float64, float64 STATUS_PARAM ); | @@ -293,6 +293,7 @@ int float64_le_quiet( float64, float64 STATUS_PARAM ); | ||
293 | int float64_lt_quiet( float64, float64 STATUS_PARAM ); | 293 | int float64_lt_quiet( float64, float64 STATUS_PARAM ); |
294 | int float64_compare( float64, float64 STATUS_PARAM ); | 294 | int float64_compare( float64, float64 STATUS_PARAM ); |
295 | int float64_compare_quiet( float64, float64 STATUS_PARAM ); | 295 | int float64_compare_quiet( float64, float64 STATUS_PARAM ); |
296 | +int float64_is_nan( float64 a ); | ||
296 | int float64_is_signaling_nan( float64 ); | 297 | int float64_is_signaling_nan( float64 ); |
297 | 298 | ||
298 | INLINE float64 float64_abs(float64 a) | 299 | INLINE float64 float64_abs(float64 a) |
@@ -336,6 +337,7 @@ int floatx80_lt( floatx80, floatx80 STATUS_PARAM ); | @@ -336,6 +337,7 @@ int floatx80_lt( floatx80, floatx80 STATUS_PARAM ); | ||
336 | int floatx80_eq_signaling( floatx80, floatx80 STATUS_PARAM ); | 337 | int floatx80_eq_signaling( floatx80, floatx80 STATUS_PARAM ); |
337 | int floatx80_le_quiet( floatx80, floatx80 STATUS_PARAM ); | 338 | int floatx80_le_quiet( floatx80, floatx80 STATUS_PARAM ); |
338 | int floatx80_lt_quiet( floatx80, floatx80 STATUS_PARAM ); | 339 | int floatx80_lt_quiet( floatx80, floatx80 STATUS_PARAM ); |
340 | +int floatx80_is_nan( floatx80 ); | ||
339 | int floatx80_is_signaling_nan( floatx80 ); | 341 | int floatx80_is_signaling_nan( floatx80 ); |
340 | 342 | ||
341 | INLINE floatx80 floatx80_abs(floatx80 a) | 343 | INLINE floatx80 floatx80_abs(floatx80 a) |
@@ -383,6 +385,7 @@ int float128_lt( float128, float128 STATUS_PARAM ); | @@ -383,6 +385,7 @@ int float128_lt( float128, float128 STATUS_PARAM ); | ||
383 | int float128_eq_signaling( float128, float128 STATUS_PARAM ); | 385 | int float128_eq_signaling( float128, float128 STATUS_PARAM ); |
384 | int float128_le_quiet( float128, float128 STATUS_PARAM ); | 386 | int float128_le_quiet( float128, float128 STATUS_PARAM ); |
385 | int float128_lt_quiet( float128, float128 STATUS_PARAM ); | 387 | int float128_lt_quiet( float128, float128 STATUS_PARAM ); |
388 | +int float128_is_nan( float128 ); | ||
386 | int float128_is_signaling_nan( float128 ); | 389 | int float128_is_signaling_nan( float128 ); |
387 | 390 | ||
388 | INLINE float128 float128_abs(float128 a) | 391 | INLINE float128 float128_abs(float128 a) |
target-mips/op_helper.c
@@ -1147,7 +1147,6 @@ void do_cmpabs_s_ ## op (long cc) \ | @@ -1147,7 +1147,6 @@ void do_cmpabs_s_ ## op (long cc) \ | ||
1147 | 1147 | ||
1148 | flag float32_is_unordered(int sig, float32 a, float32 b STATUS_PARAM) | 1148 | flag float32_is_unordered(int sig, float32 a, float32 b STATUS_PARAM) |
1149 | { | 1149 | { |
1150 | - extern flag float32_is_nan(float32 a); | ||
1151 | if (float32_is_signaling_nan(a) || | 1150 | if (float32_is_signaling_nan(a) || |
1152 | float32_is_signaling_nan(b) || | 1151 | float32_is_signaling_nan(b) || |
1153 | (sig && (float32_is_nan(a) || float32_is_nan(b)))) { | 1152 | (sig && (float32_is_nan(a) || float32_is_nan(b)))) { |