From a8ee1dbc56889c680f0358cbb2a10e619aea1729 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 8 Sep 2003 12:23:03 +0000 Subject: [PATCH] Added Marcus version of __swap_int16(); it's commented out for now, though, but we might want to add it later. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4561 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/libroot/os/arch/x86/byteorder.S | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/kernel/libroot/os/arch/x86/byteorder.S b/src/kernel/libroot/os/arch/x86/byteorder.S index f56bf66853..a6c7aaac73 100644 --- a/src/kernel/libroot/os/arch/x86/byteorder.S +++ b/src/kernel/libroot/os/arch/x86/byteorder.S @@ -14,6 +14,15 @@ FUNCTION(__swap_int16): shr $16, %eax ret +/* this one is much faster on a P4, courtesy of Marcus Overhagen, + * a good candidate for per processor optimizations: */ +/* +FUNCTION(__swap_int16_p4): + movl 4(%esp), %eax + rolw $8, %ax + ret +*/ + /* uint32 __swap_int32(uint32 value) */ FUNCTION(__swap_int32): movl 4(%esp), %eax