Commit 05795922 by Richard Stallman

*** empty log message ***

From-SVN: r410
parent eb76eb5a
...@@ -1614,21 +1614,17 @@ unsigned long ...@@ -1614,21 +1614,17 @@ unsigned long
sfmode_constant_to_ulong (x) sfmode_constant_to_ulong (x)
rtx x; rtx x;
{ {
union { double d; unsigned long i[2]; } u; REAL_VALUE_TYPE d;
union { float f; unsigned long i; } u2; union { float f; unsigned long i; } u2;
if (GET_CODE (x) != CONST_DOUBLE || GET_MODE (x) != SFmode) if (GET_CODE (x) != CONST_DOUBLE || GET_MODE (x) != SFmode)
abort (); abort ();
#ifndef HOST_WORDS_BIG_ENDIAN #if TARGET_FLOAT_FORMAT != HOST_FLOAT_FORMAT
u.i[0] = CONST_DOUBLE_LOW (x); # error IEEE emulation needed
u.i[1] = CONST_DOUBLE_HIGH (x);
#else
u.i[0] = CONST_DOUBLE_HIGH (x);
u.i[1] = CONST_DOUBLE_LOW (x);
#endif #endif
REAL_VALUE_FROM_CONST_DOUBLE (u.d, x);
u2.f = u.d; u2.f = d;
return u2.i; return u2.i;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment