Statistics
| Branch: | Revision:

root / fpu @ 06ea77bc

Name Size
softfloat-macros.h 24.9 kB
softfloat-native.c 11.5 kB
softfloat-native.h 14.8 kB
softfloat-specialize.h 27.5 kB
softfloat.c 228.9 kB
softfloat.h 25.8 kB

Latest revisions

# Date Author Comment
e6afc87f 05/23/2011 11:39 pm Peter Maydell

softfloat: Add new flag for when denormal result is flushed to zero

Add a new float_flag_output_denormal which is set when the result
of a floating point operation would be denormal but is flushed to
zero because we are in flush_to_zero mode. This is necessary because...

326b9e98 04/25/2011 12:18 pm Aurelien Jarno

softfloat: fix float*_scalnb() corner cases

float*_scalnb() were not taking into account all cases. This patch fixes
some corner cases:
- NaN values in input were not properly propagated and the invalid flag
not correctly raised. Use propagateFloat*NaN() for that....

d6882cf0 04/25/2011 12:18 pm Aurelien Jarno

softfloat-native: fix float*_scalbn() functions

float*_scalbn() should be able to take a status parameter. Fix that.

Reviewed-by: Peter Maydell <>
Signed-off-by: Aurelien Jarno <>

4cc5383f 04/25/2011 12:18 pm Aurelien Jarno

softfloat-native: add float*_is_any_nan() functions

Add float*_is_any_nan() functions to match the softfloat API.

Reviewed-by: Peter Maydell <>
Signed-off-by: Aurelien Jarno <>

e2f42204 04/25/2011 12:18 pm Aurelien Jarno

softfloat: fix floatx80 handling of NaN

The floatx80 format uses an explicit bit that should be taken into account
when converting to and from commonNaN format.

When converting to commonNaN, the explicit bit should be removed if it is
a 1, and a default NaN should be used if it is 0....

b76235e4 04/25/2011 12:18 pm Aurelien Jarno

softfloat: fix floatx80_is_infinity()

With floatx80, the explicit bit is set for infinity.

Reviewed-by: Peter Maydell <>
Signed-off-by: Aurelien Jarno <>

f3218a8d 04/25/2011 12:18 pm Aurelien Jarno

softfloat: add floatx80 constants

Add floatx80 constants similarly to float32 or float64.

Reviewed-by: Peter Maydell <>
Signed-off-by: Aurelien Jarno <>

c4b4c77a 04/25/2011 12:18 pm Aurelien Jarno

softfloat: add pi constants

Add a pi constant for float32, float64, floatx80. It will be used by
target-i386 and later by the trigonometric functions.

Reviewed-by: Peter Maydell <>
Signed-off-by: Aurelien Jarno <>

d2b1027d 04/25/2011 12:18 pm Aurelien Jarno

softfloat-native: add a few constant values

Reviewed-by: Peter Maydell <>
Signed-off-by: Aurelien Jarno <>

f6714d36 04/25/2011 12:18 pm Aurelien Jarno

softfloat: add floatx80_compare*() functions

Add floatx80_compare() and floatx80_compare_quiet() functions to match
the softfloat-native ones.

Reviewed-by: Peter Maydell <>
Signed-off-by: Aurelien Jarno <>

View revisions

Also available in: Atom