Commit 196cfc89e8bf307a03c32dfeb4810b08579ef3da
1 parent
e140632e
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
Showing
1 changed file
with
2 additions
and
0 deletions
fpu/softfloat.h
@@ -307,6 +307,7 @@ INLINE int float32_is_zero(float32 a) | @@ -307,6 +307,7 @@ INLINE int float32_is_zero(float32 a) | ||
307 | } | 307 | } |
308 | 308 | ||
309 | #define float32_zero make_float32(0) | 309 | #define float32_zero make_float32(0) |
310 | +#define float32_one make_float32(0x3f800000) | ||
310 | 311 | ||
311 | /*---------------------------------------------------------------------------- | 312 | /*---------------------------------------------------------------------------- |
312 | | Software IEC/IEEE double-precision conversion routines. | 313 | | Software IEC/IEEE double-precision conversion routines. |
@@ -376,6 +377,7 @@ INLINE int float64_is_zero(float64 a) | @@ -376,6 +377,7 @@ INLINE int float64_is_zero(float64 a) | ||
376 | } | 377 | } |
377 | 378 | ||
378 | #define float64_zero make_float64(0) | 379 | #define float64_zero make_float64(0) |
380 | +#define float64_one make_float64(0x3ff0000000000000LL) | ||
379 | 381 | ||
380 | #ifdef FLOATX80 | 382 | #ifdef FLOATX80 |
381 | 383 |