diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-04-03 14:22:48 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-04-03 14:22:48 +0000 |
commit | 30337d2a30c45b8e4b693cf152f5331ff44be5ec (patch) | |
tree | 8062e2adc7eebdd3ecde23b3c1ea121eee407c99 /c/src/lib/libcpu/powerpc/shared | |
parent | 2002-04-02 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff) | |
download | rtems-30337d2a30c45b8e4b693cf152f5331ff44be5ec.tar.bz2 |
2002-02-04 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* shared/include/byteorder.h: Use unsigned instead of __unsigned
(GCC-3.0.x compatibility).
Diffstat (limited to 'c/src/lib/libcpu/powerpc/shared')
-rw-r--r-- | c/src/lib/libcpu/powerpc/shared/include/byteorder.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/c/src/lib/libcpu/powerpc/shared/include/byteorder.h b/c/src/lib/libcpu/powerpc/shared/include/byteorder.h index 16faebef04..d90742e768 100644 --- a/c/src/lib/libcpu/powerpc/shared/include/byteorder.h +++ b/c/src/lib/libcpu/powerpc/shared/include/byteorder.h @@ -55,9 +55,9 @@ extern __inline__ void st_le32(volatile unsigned *addr, unsigned val) # define __arch_swab16(x) ld_le16(&x) # define __arch_swab32(x) ld_le32(&x) #else -static __inline__ __const__ __unsigned short ___arch__swab16(__unsigned short value) +static __inline__ __const__ unsigned short ___arch__swab16(unsigned short value) { - __unsigned int tmp; + unsigned int tmp; __asm__("rlwimi %0,%0,8,0xff0000" : "=r" (tmp) @@ -65,9 +65,9 @@ static __inline__ __const__ __unsigned short ___arch__swab16(__unsigned short va return (tmp&0x00ffff00)>>8; } -static __inline__ __const__ __unsigned int ___arch__swab32(__unsigned int value) +static __inline__ __const__ unsigned int ___arch__swab32(unsigned int value) { - __unsigned int result; + unsigned int result; __asm__("rotlwi %0,%1,24\n\t" "rlwimi %0,%1,8,0xff\n\t" |