2002-02-04 Ralf Corsepius <corsepiu@faw.uni-ulm.de>

* shared/include/byteorder.h: Use unsigned instead of __unsigned
	(GCC-3.0.x compatibility).
This commit is contained in:
Joel Sherrill
2002-04-03 14:22:48 +00:00
parent 20603d1161
commit 30337d2a30
2 changed files with 9 additions and 4 deletions

View File

@@ -1,3 +1,8 @@
2002-02-04 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* shared/include/byteorder.h: Use unsigned instead of __unsigned
(GCC-3.0.x compatibility).
2002-03-27 Ralf Corsepius <corsepiu@faw.uni-ulm.de> 2002-03-27 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: * configure.ac:

View File

@@ -55,9 +55,9 @@ extern __inline__ void st_le32(volatile unsigned *addr, unsigned val)
# define __arch_swab16(x) ld_le16(&x) # define __arch_swab16(x) ld_le16(&x)
# define __arch_swab32(x) ld_le32(&x) # define __arch_swab32(x) ld_le32(&x)
#else #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" __asm__("rlwimi %0,%0,8,0xff0000"
: "=r" (tmp) : "=r" (tmp)
@@ -65,9 +65,9 @@ static __inline__ __const__ __unsigned short ___arch__swab16(__unsigned short va
return (tmp&0x00ffff00)>>8; 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" __asm__("rotlwi %0,%1,24\n\t"
"rlwimi %0,%1,8,0xff\n\t" "rlwimi %0,%1,8,0xff\n\t"