Statistics
| Branch: | Revision:

root / fpu @ 1de7afc9

Name Size
softfloat-macros.h 24.9 kB
softfloat-specialize.h 38.3 kB
softfloat.c 243.7 kB
softfloat.h 24.2 kB

Latest revisions

# Date Author Comment
1de7afc9 12/19/2012 09:32 am Paolo Bonzini

misc: move include files to include/qemu/

Signed-off-by: Paolo Bonzini <>

bbc1dede 10/31/2012 11:20 pm Aurelien Jarno

softfloat: implement fused multiply-add NaN propagation for MIPS

Add a pickNaNMulAdd function for MIPS, implementing NaN propagation
rules for MIPS fused multiply-add instructions.

Cc: Peter Maydell <>
Reviewed-by: Richard Henderson <>...

4be8eeac 10/01/2012 11:06 pm Peter Maydell

fpu/softfloat.c: Remove pointless shift of always-zero value

In float16_to_float32, when returning an infinity, just pass zero
as the mantissa argument to packFloat32(), rather than shifting
a value which we know must be zero.

Signed-off-by: Peter Maydell <>...

e744c06f 10/01/2012 11:06 pm Peter Maydell

fpu/softfloat.c: Return correctly signed values from uint64_to_float32

The uint64_to_float32() conversion function was incorrectly always
returning numbers with the sign bit set (ie negative numbers). Correct
this so we return positive numbers instead.

Signed-off-by: Peter Maydell <>...

66176802 09/22/2012 08:59 pm Max Filippov

softfloat: make float_muladd_negate_* flags independent

Flags passed into float{32,64}_muladd are treated as bits; assign
independent bits to float_muladd_negate_* to allow precise control over
what gets negated in float{32,64}_muladd.

Signed-off-by: Max Filippov <>...

213ff4e6 09/22/2012 08:59 pm Max Filippov

softfloat: add NO_SIGNALING_NANS

Architectures that don't have signaling NaNs can define
NO_SIGNALING_NANS, it will make float*_is_quiet_nan return 1 for any NaN
and float*_is_signaling_nan always return 0.

Signed-off-by: Max Filippov <>...

b81fe822 09/22/2012 08:59 pm Max Filippov

target-xtensa: specialize softfloat NaN rules

NaN propagation rule: leftmost NaN in the expression gets propagated to
the result.

Signed-off-by: Max Filippov <>
Signed-off-by: Blue Swirl <>

94a49d86 04/28/2012 12:13 pm Andreas Färber

softfloat: Replace int16 type with int_fast16_t

Based on the following Coccinelle patch:

@
typedef int16, int_fast16_t;
@
-int16
+int_fast16_t

Avoids a workaround for AIX.

Add typedef for pre-10 Solaris.

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

5aea4c58 04/28/2012 12:13 pm Andreas Färber

softfloat: Replace uint16 type with uint_fast16_t

Based on the following Coccinelle patch:

@
typedef uint16, uint_fast16_t;
@
-uint16
+uint_fast16_t

Fixes the build of the Cocoa frontend on Mac OS X and avoids a
workaround for AIX.

For pre-10 Solaris include osdep.h....

c9696547 04/28/2012 12:12 pm Andreas Färber

softfloat: Fix mixups of int and int16

normalizeFloat{32,64}Subnormal() expect the exponent as int16, not int.
This went unnoticed since int16 and uint16 were both typedef'ed to int.

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

View revisions

Also available in: Atom