mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
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
This commit is contained in:
parent
e140632e87
commit
196cfc89e8
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue