mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
softfloat: Rename float*_is_nan() functions to float*_is_quiet_nan()
The softfloat functions float*_is_nan() were badly misnamed, because they return true only for quiet NaNs, not for all NaNs. Rename them to float*_is_quiet_nan() to more accurately reflect what they do. This change was produced by: perl -p -i -e 's/_is_nan/_is_quiet_nan/g' $(git grep -l is_nan) (with the results manually checked.) Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Nathan Froyd <froydnj@codesourcery.com> Acked-by: Edgar E. Iglesias <edgar.iglesias@gmail.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
f96a38347a
commit
185698715d
10 changed files with 67 additions and 67 deletions
|
@ -254,7 +254,7 @@ int float32_is_signaling_nan( float32 a1)
|
|||
return ( ( ( a>>22 ) & 0x1FF ) == 0x1FE ) && ( a & 0x003FFFFF );
|
||||
}
|
||||
|
||||
int float32_is_nan( float32 a1 )
|
||||
int float32_is_quiet_nan( float32 a1 )
|
||||
{
|
||||
float32u u;
|
||||
uint64_t a;
|
||||
|
@ -411,7 +411,7 @@ int float64_is_signaling_nan( float64 a1)
|
|||
|
||||
}
|
||||
|
||||
int float64_is_nan( float64 a1 )
|
||||
int float64_is_quiet_nan( float64 a1 )
|
||||
{
|
||||
float64u u;
|
||||
uint64_t a;
|
||||
|
@ -504,7 +504,7 @@ int floatx80_is_signaling_nan( floatx80 a1)
|
|||
&& ( u.i.low == aLow );
|
||||
}
|
||||
|
||||
int floatx80_is_nan( floatx80 a1 )
|
||||
int floatx80_is_quiet_nan( floatx80 a1 )
|
||||
{
|
||||
floatx80u u;
|
||||
u.f = a1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue