diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-12-06 02:42:00 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2022-01-06 01:17:39 -0500 |
commit | 95e40d770e95c0d5317c2566a7976bd3421f380a (patch) | |
tree | ee409c8b3279492f88f1b3b5e675e86d254b899d /sim/ppc/bits.c | |
parent | e4c803f5bb08e946f0550260b39f71eff0192262 (diff) | |
download | fsf-binutils-gdb-95e40d770e95c0d5317c2566a7976bd3421f380a.zip fsf-binutils-gdb-95e40d770e95c0d5317c2566a7976bd3421f380a.tar.gz fsf-binutils-gdb-95e40d770e95c0d5317c2566a7976bd3421f380a.tar.bz2 |
sim: ppc: migrate to standard uintXX_t types
Drop the sim-specific unsignedXX types and move to the standard uintXX_t
types that C11 provides.
Diffstat (limited to 'sim/ppc/bits.c')
-rw-r--r-- | sim/ppc/bits.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/sim/ppc/bits.c b/sim/ppc/bits.c index 767f196..bf2f8f0 100644 --- a/sim/ppc/bits.c +++ b/sim/ppc/bits.c @@ -24,8 +24,8 @@ #include "basics.h" INLINE_BITS\ -(unsigned64) -LSMASKED64 (unsigned64 word, +(uint64_t) +LSMASKED64 (uint64_t word, int start, int stop) { @@ -34,8 +34,8 @@ LSMASKED64 (unsigned64 word, } INLINE_BITS\ -(unsigned64) -LSEXTRACTED64 (unsigned64 val, +(uint64_t) +LSEXTRACTED64 (uint64_t val, int start, int stop) { @@ -45,8 +45,8 @@ LSEXTRACTED64 (unsigned64 val, } INLINE_BITS\ -(unsigned32) -MASKED32(unsigned32 word, +(uint32_t) +MASKED32(uint32_t word, unsigned start, unsigned stop) { @@ -54,8 +54,8 @@ MASKED32(unsigned32 word, } INLINE_BITS\ -(unsigned64) -MASKED64(unsigned64 word, +(uint64_t) +MASKED64(uint64_t word, unsigned start, unsigned stop) { @@ -112,8 +112,8 @@ INSERTED(unsigned_word word, INLINE_BITS\ -(unsigned32) -ROTL32(unsigned32 val, +(uint32_t) +ROTL32(uint32_t val, long shift) { ASSERT(shift >= 0 && shift <= 32); @@ -122,8 +122,8 @@ ROTL32(unsigned32 val, INLINE_BITS\ -(unsigned64) -ROTL64(unsigned64 val, +(uint64_t) +ROTL64(uint64_t val, long shift) { ASSERT(shift >= 0 && shift <= 64); |