mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
softfloat: Use pointers with parts_default_nan
At the same time, rename to parts64_default_nan and add a macro for parts_default_nan. This will be flushed out once 128-bit support is added. Reviewed-by: David Hildenbrand <david@redhat.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
aaffb7bf1c
commit
0fc07cade2
2 changed files with 34 additions and 17 deletions
|
@ -129,7 +129,7 @@ static bool parts_is_snan_frac(uint64_t frac, float_status *status)
|
|||
| The pattern for a default generated deconstructed floating-point NaN.
|
||||
*----------------------------------------------------------------------------*/
|
||||
|
||||
static FloatParts64 parts_default_nan(float_status *status)
|
||||
static void parts64_default_nan(FloatParts64 *p, float_status *status)
|
||||
{
|
||||
bool sign = 0;
|
||||
uint64_t frac;
|
||||
|
@ -163,7 +163,7 @@ static FloatParts64 parts_default_nan(float_status *status)
|
|||
}
|
||||
#endif
|
||||
|
||||
return (FloatParts64) {
|
||||
*p = (FloatParts64) {
|
||||
.cls = float_class_qnan,
|
||||
.sign = sign,
|
||||
.exp = INT_MAX,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue