diff options
author | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-02-04 13:52:27 +0000 |
---|---|---|
committer | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-02-04 13:52:27 +0000 |
commit | 196cfc89e8bf307a03c32dfeb4810b08579ef3da (patch) | |
tree | 965b771bf93f1add71011b5f905f391790e63cd1 /fpu | |
parent | e140632e87e242210ec9c77933eb15f4c860921e (diff) | |
download | qemu-196cfc89e8bf307a03c32dfeb4810b08579ef3da.zip qemu-196cfc89e8bf307a03c32dfeb4810b08579ef3da.tar.gz qemu-196cfc89e8bf307a03c32dfeb4810b08579ef3da.tar.bz2 |
softfloat: add a 1.0 constant for float32 and float64
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6514 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'fpu')
-rw-r--r-- | fpu/softfloat.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fpu/softfloat.h b/fpu/softfloat.h index b46d63c..a06a313 100644 --- a/fpu/softfloat.h +++ b/fpu/softfloat.h @@ -307,6 +307,7 @@ INLINE int float32_is_zero(float32 a) } #define float32_zero make_float32(0) +#define float32_one make_float32(0x3f800000) /*---------------------------------------------------------------------------- | Software IEC/IEEE double-precision conversion routines. @@ -376,6 +377,7 @@ INLINE int float64_is_zero(float64 a) } #define float64_zero make_float64(0) +#define float64_one make_float64(0x3ff0000000000000LL) #ifdef FLOATX80 |