diff options
author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-11-09 10:00:28 +0000 |
---|---|---|
committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-11-09 10:00:28 +0000 |
commit | 3a54beafaa08337dab2968b43ffc392b37cc9a71 (patch) | |
tree | 9ee23a0ca0759957e9ebeca361012cde0e70ca16 /gcc/real.c | |
parent | fce49e7cff4326ac139147df68dbbe10df6736d8 (diff) | |
download | gcc-3a54beafaa08337dab2968b43ffc392b37cc9a71.tar.gz |
Fix some formatting. Put stuff on a single line where shorter wide-int code
makes that possible. Undo some spurious differences with trunk.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/wide-int@204613 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/real.c')
-rw-r--r-- | gcc/real.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/gcc/real.c b/gcc/real.c index f9651163aaf..7d2d611c113 100644 --- a/gcc/real.c +++ b/gcc/real.c @@ -1378,9 +1378,8 @@ real_to_integer (const REAL_VALUE_TYPE *r) } } -/* Likewise, but producing a wide-int of PRECISION. If - the value cannot be represented in precision, FAIL is set to - TRUE. */ +/* Likewise, but producing a wide-int of PRECISION. If the value cannot + be represented in precision, *FAIL is set to TRUE. */ wide_int real_to_integer (const REAL_VALUE_TYPE *r, bool *fail, int precision) @@ -1448,8 +1447,8 @@ real_to_integer (const REAL_VALUE_TYPE *r, bool *fail, int precision) } #endif w = SIGSZ * HOST_BITS_PER_LONG + words * HOST_BITS_PER_WIDE_INT; - result = wide_int::from_array (val, - (w + HOST_BITS_PER_WIDE_INT - 1) / HOST_BITS_PER_WIDE_INT, w, w); + result = wide_int::from_array + (val, (w + HOST_BITS_PER_WIDE_INT - 1) / HOST_BITS_PER_WIDE_INT, w); result = wi::lrshift (result, (words * HOST_BITS_PER_WIDE_INT) - exp); result = wide_int::from (result, precision, UNSIGNED); @@ -2152,8 +2151,7 @@ real_from_string3 (REAL_VALUE_TYPE *r, const char *s, enum machine_mode mode) void real_from_integer (REAL_VALUE_TYPE *r, enum machine_mode mode, - HOST_WIDE_INT val, - signop sgn) + HOST_WIDE_INT val, signop sgn) { if (val == 0) get_zero (r, 0); @@ -2198,9 +2196,10 @@ real_from_integer (REAL_VALUE_TYPE *r, enum machine_mode mode, else { unsigned int len = val_in.get_precision (); - int i, j, e=0; + int i, j, e = 0; int maxbitlen = MAX_BITSIZE_MODE_ANY_INT + HOST_BITS_PER_WIDE_INT; - const unsigned int realmax = SIGNIFICAND_BITS/HOST_BITS_PER_WIDE_INT * HOST_BITS_PER_WIDE_INT; + const unsigned int realmax = (SIGNIFICAND_BITS / HOST_BITS_PER_WIDE_INT + * HOST_BITS_PER_WIDE_INT); memset (r, 0, sizeof (*r)); r->cl = rvc_normal; |