From 30337d2a30c45b8e4b693cf152f5331ff44be5ec Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 3 Apr 2002 14:22:48 +0000 Subject: 2002-02-04 Ralf Corsepius * shared/include/byteorder.h: Use unsigned instead of __unsigned (GCC-3.0.x compatibility). --- c/src/lib/libcpu/powerpc/ChangeLog | 5 +++++ c/src/lib/libcpu/powerpc/shared/include/byteorder.h | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) (limited to 'c/src/lib/libcpu/powerpc') diff --git a/c/src/lib/libcpu/powerpc/ChangeLog b/c/src/lib/libcpu/powerpc/ChangeLog index 99a6f5e25f..d4db734e29 100644 --- a/c/src/lib/libcpu/powerpc/ChangeLog +++ b/c/src/lib/libcpu/powerpc/ChangeLog @@ -1,3 +1,8 @@ +2002-02-04 Ralf Corsepius + + * shared/include/byteorder.h: Use unsigned instead of __unsigned + (GCC-3.0.x compatibility). + 2002-03-27 Ralf Corsepius * configure.ac: 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" -- cgit v1.2.3