aboutsummaryrefslogtreecommitdiff
path: root/sys/i386/include/endian.h
diff options
context:
space:
mode:
authorDavid Malone <dwmalone@FreeBSD.org>2001-03-06 11:35:04 +0000
committerDavid Malone <dwmalone@FreeBSD.org>2001-03-06 11:35:04 +0000
commitf88eb0114067c41aba6596f16c28e253b9733abc (patch)
tree9f16ba6c64eb0173092a923a7c4be8e8d66de4a4 /sys/i386/include/endian.h
parentf4b9935804d0c71e9886f481a2b4ab52fe9a261e (diff)
Notes
Diffstat (limited to 'sys/i386/include/endian.h')
-rw-r--r--sys/i386/include/endian.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/i386/include/endian.h b/sys/i386/include/endian.h
index 1968249923c4..c9e6cb9fd5c1 100644
--- a/sys/i386/include/endian.h
+++ b/sys/i386/include/endian.h
@@ -68,16 +68,16 @@ __END_DECLS
#ifdef __GNUC__
-static __inline unsigned int
-__uint16_swap_uint32(unsigned int __x)
+static __inline unsigned long
+__uint16_swap_uint32(unsigned long __x)
{
__asm ("rorl $16, %1" : "=r" (__x) : "0" (__x));
return __x;
}
-static __inline unsigned int
-__uint8_swap_uint32(unsigned int __x)
+static __inline unsigned long
+__uint8_swap_uint32(unsigned long __x)
{
#if defined(_KERNEL) && (defined(I486_CPU) || defined(I586_CPU) || defined(I686_CPU)) && !defined(I386_CPU)
__asm ("bswap %0" : "=r" (__x) : "0" (__x));