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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user