diff options
author | Eric Christopher <echristo@gcc.gnu.org> | 2007-01-04 23:16:34 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gcc.gnu.org> | 2007-01-04 23:16:34 +0000 |
commit | e4b6bec2f1a0b420437fa7a8f6bf2da3dce9c228 (patch) | |
tree | dd4094fdd3ac11de20be720f32640aa8e1967ff6 /gcc/libgcc2.c | |
parent | d6c397b0ffe06e3008d3c82330bf8cf63962b328 (diff) | |
download | gcc-e4b6bec2f1a0b420437fa7a8f6bf2da3dce9c228.tar.gz |
libgcc2.c (__bswapsi2): Use SItype.
2007-01-04 Eric Christopher <echristo@apple.com>
* libgcc2.c (__bswapsi2): Use SItype.
(__bswapdi2): Use DItype.
* libgcc2.h: Update for above.
From-SVN: r120454
Diffstat (limited to 'gcc/libgcc2.c')
-rw-r--r-- | gcc/libgcc2.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c index bc50ab6b74f..b78b8f6a387 100644 --- a/gcc/libgcc2.c +++ b/gcc/libgcc2.c @@ -493,8 +493,8 @@ __ashrdi3 (DWtype u, word_type b) #endif #ifdef L_bswapsi2 -UWtype -__bswapsi2 (UWtype u) +SItype +__bswapsi2 (SItype u) { return ((((u) & 0xff000000) >> 24) | (((u) & 0x00ff0000) >> 8) @@ -503,8 +503,8 @@ __bswapsi2 (UWtype u) } #endif #ifdef L_bswapdi2 -UDWtype -__bswapdi2 (UDWtype u) +DItype +__bswapdi2 (DItype u) { return ((((u) & 0xff00000000000000ull) >> 56) | (((u) & 0x00ff000000000000ull) >> 40) |