summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Murray <markm@FreeBSD.org>2001-04-14 20:42:04 +0000
committerMark Murray <markm@FreeBSD.org>2001-04-14 20:42:04 +0000
commitb4edbce08c03a664db413872cf5ba29aab3f0de4 (patch)
treeba3085309bb6210498bc318fa3c5adbe6f5261a8
parent11027719c4b793b17fc24c5020fe7aac376932ae (diff)
Notes
-rw-r--r--sys/i386/include/endian.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/i386/include/endian.h b/sys/i386/include/endian.h
index 2764e6937932..41ceda4cb6d3 100644
--- a/sys/i386/include/endian.h
+++ b/sys/i386/include/endian.h
@@ -71,9 +71,7 @@ __END_DECLS
static __inline unsigned long
__uint16_swap_uint32(unsigned long __x)
{
-#ifndef lint
__asm ("rorl $16, %1" : "=r" (__x) : "0" (__x));
-#endif
return __x;
}
@@ -81,23 +79,19 @@ __uint16_swap_uint32(unsigned long __x)
static __inline unsigned long
__uint8_swap_uint32(unsigned long __x)
{
-#ifndef lint
#if defined(_KERNEL) && (defined(I486_CPU) || defined(I586_CPU) || defined(I686_CPU)) && !defined(I386_CPU)
__asm ("bswap %0" : "=r" (__x) : "0" (__x));
#else
__asm ("xchgb %h1, %b1\n\trorl $16, %1\n\txchgb %h1, %b1"
: "=q" (__x) : "0" (__x));
#endif
-#endif
return __x;
}
static __inline unsigned short
__uint8_swap_uint16(unsigned short __x)
{
-#ifndef lint
__asm ("xchgb %h1, %b1" : "=q" (__x) : "0" (__x));
-#endif
return __x;
}