Statistics
| Branch: | Revision:

root / fpu @ 85df3786

Name Size
softfloat-macros.h 24.9 kB
softfloat-specialize.h 36.5 kB
softfloat.c 243.3 kB
softfloat.h 24.1 kB

Latest revisions

# Date Author Comment
0eb4fc81 04/21/2012 04:26 pm Juan Quintela

softfloat: make USE_SOFTFLOAT_STRUCT_TYPES compile

This change makes it compile and return the same value than the #undef one.

Signed-off-by: Juan Quintela <>
Reviewed-by: Peter Maydell <>
Acked-by: Andreas Färber <>...

760e1416 04/07/2012 02:15 pm Peter Maydell

softfloat: roundAndPackInt{32, 64}: Don't assume int32 is 32 bits

Fix code in roundAndPackInt32 that assumed that int32 was only
32 bits, by simply using int32_t instead. Fix the parallel bug
in roundAndPackInt64 as well, although that one is only theoretical...

b3a6a2e0 04/07/2012 02:15 pm Peter Maydell

softfloat: float*_to_int32_round_to_zero: don't assume int32 is 32 bits

Code in the float64_to_int32_round_to_zero() function was assuming
that int32 would not be wider than 32 bits; this meant it might
not correctly detect the overflow case. We take the simple approach...

3bf7e40a 03/17/2012 03:01 pm Avi Kivity

softfloat: fix for C99

C99 appears to consider compound literals as non-constants, and complains
when they are used in static initializers. Switch to ordinary initializer
syntax.

Signed-off-by: Avi Kivity <>
Acked-by: Andreas Färber <>...

369be8f6 10/19/2011 07:14 pm Peter Maydell

softfloat: Implement fused multiply-add

Implement fused multiply-add as a softfloat primitive. This implements
"a+b*c" as a single step without any intermediate rounding; it is
specified in IEEE 754-2008 and implemented in a number of CPUs.

Signed-off-by: Peter Maydell <>

2ac8bd03 10/01/2011 09:19 am Peter Maydell

softfloat: Reinstate accidentally disabled target-specific NaN handling

Include config.h in softfloat.c, so that the target specific ifdefs in
softfloat-specialize.h are evaluated correctly. This was accidentally
broken in commit 789ec7ce2 when config-target.h was removed from...

9f8d2a09 09/03/2011 08:47 pm Andreas Färber

softfloat: Use uint32 consistently

Prepares for uint32 replacement.

Signed-off-by: Andreas Färber <>
Reviewed-by: Peter Maydell <>
Signed-off-by: Blue Swirl <>

38641f8f 09/03/2011 08:46 pm Andreas Färber

softfloat: Use uint16 consistently

Prepares for uint16 replacement.

Signed-off-by: Andreas Färber <>
Reviewed-by: Peter Maydell <>
Signed-off-by: Blue Swirl <>

789ec7ce 07/29/2011 04:25 pm Paolo Bonzini

softfloat: change default nan definitions to variables

Most definitions in softfloat.h are really target-independent, but the
file is not because it includes definitions of the default NaN values.
Change those to variables to allow including softfloat.h from files that...

587eabfa 06/03/2011 05:07 pm Aurelien Jarno

softfloat: add float*_is_zero_or_denormal()

float*_is_zero_or_denormal() is available for float32, but not for
float64, floatx80 and float128. Fix that.

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

View revisions

Also available in: Atom