diff options
author | Nathan Froyd <froydnj@codesourcery.com> | 2011-03-23 01:34:55 +0000 |
---|---|---|
committer | Nathan Froyd <froydnj@gcc.gnu.org> | 2011-03-23 01:34:55 +0000 |
commit | fdf3e18a143c7e5a40f0466fa910f49df9632db2 (patch) | |
tree | 993a3cca33dac86ae2ccf68ce7e3482d980b151b /gcc/libgcc2.c | |
parent | bf30ee589ee360b70c056ef5dc6c2cd04a9d051c (diff) | |
download | gcc-fdf3e18a143c7e5a40f0466fa910f49df9632db2.zip gcc-fdf3e18a143c7e5a40f0466fa910f49df9632db2.tar.gz gcc-fdf3e18a143c7e5a40f0466fa910f49df9632db2.tar.bz2 |
libgcc2.c (__lshrdi3, [...]): Use W_TYPE_SIZE.
* libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
(__ffsDI2): Likewise.
From-SVN: r171338
Diffstat (limited to 'gcc/libgcc2.c')
-rw-r--r-- | gcc/libgcc2.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c index 78d53f0..5312a10 100644 --- a/gcc/libgcc2.c +++ b/gcc/libgcc2.c @@ -407,7 +407,7 @@ __lshrdi3 (DWtype u, shift_count_type b) return u; const DWunion uu = {.ll = u}; - const shift_count_type bm = (sizeof (Wtype) * BITS_PER_UNIT) - b; + const shift_count_type bm = W_TYPE_SIZE - b; DWunion w; if (bm <= 0) @@ -435,7 +435,7 @@ __ashldi3 (DWtype u, shift_count_type b) return u; const DWunion uu = {.ll = u}; - const shift_count_type bm = (sizeof (Wtype) * BITS_PER_UNIT) - b; + const shift_count_type bm = W_TYPE_SIZE - b; DWunion w; if (bm <= 0) @@ -463,13 +463,13 @@ __ashrdi3 (DWtype u, shift_count_type b) return u; const DWunion uu = {.ll = u}; - const shift_count_type bm = (sizeof (Wtype) * BITS_PER_UNIT) - b; + const shift_count_type bm = W_TYPE_SIZE - b; DWunion w; if (bm <= 0) { /* w.s.high = 1..1 or 0..0 */ - w.s.high = uu.s.high >> (sizeof (Wtype) * BITS_PER_UNIT - 1); + w.s.high = uu.s.high >> (W_TYPE_SIZE - 1); w.s.low = uu.s.high >> -bm; } else @@ -534,7 +534,7 @@ __ffsDI2 (DWtype u) if (uu.s.low != 0) word = uu.s.low, add = 0; else if (uu.s.high != 0) - word = uu.s.high, add = BITS_PER_UNIT * sizeof (Wtype); + word = uu.s.high, add = W_TYPE_SIZE; else return 0; |