* sim-fpu.c (sim_fpu_abs): Always clear the sign bit.
This commit is contained in:
parent
21d1489665
commit
efd3631498
@ -1,5 +1,7 @@
|
||||
2005-07-08 Ian Lance Taylor <ian@airs.com>
|
||||
|
||||
* sim-fpu.c (sim_fpu_abs): Always clear the sign bit.
|
||||
|
||||
* sim-fpu.c (pack_fpu): If SIM_QUIET_NAN_NEGATED is defined, use a
|
||||
different fraction for a quiet NaN.
|
||||
(unpack_fpu): Likewise.
|
||||
|
@ -1744,19 +1744,13 @@ INLINE_SIM_FPU (int)
|
||||
sim_fpu_abs (sim_fpu *f,
|
||||
const sim_fpu *r)
|
||||
{
|
||||
*f = *r;
|
||||
f->sign = 0;
|
||||
if (sim_fpu_is_snan (r))
|
||||
{
|
||||
*f = *r;
|
||||
f->class = sim_fpu_class_qnan;
|
||||
return sim_fpu_status_invalid_snan;
|
||||
}
|
||||
if (sim_fpu_is_qnan (r))
|
||||
{
|
||||
*f = *r;
|
||||
return 0;
|
||||
}
|
||||
*f = *r;
|
||||
f->sign = 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user