mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-22 18:46:18 +00:00
AK: Use x86 specific fast path in fast_u32{fill, copy} on x86_64
This commit is contained in:
parent
59ca435172
commit
6e38076b48
|
@ -17,7 +17,7 @@
|
|||
|
||||
ALWAYS_INLINE void fast_u32_copy(u32* dest, const u32* src, size_t count)
|
||||
{
|
||||
#if ARCH(I386)
|
||||
#if ARCH(I386) || ARCH(X86_64)
|
||||
asm volatile(
|
||||
"rep movsl\n"
|
||||
: "+S"(src), "+D"(dest), "+c"(count)::"memory");
|
||||
|
@ -28,7 +28,7 @@ ALWAYS_INLINE void fast_u32_copy(u32* dest, const u32* src, size_t count)
|
|||
|
||||
ALWAYS_INLINE void fast_u32_fill(u32* dest, u32 value, size_t count)
|
||||
{
|
||||
#if ARCH(I386)
|
||||
#if ARCH(I386) || ARCH(X86_64)
|
||||
asm volatile(
|
||||
"rep stosl\n"
|
||||
: "=D"(dest), "=c"(count)
|
||||
|
|
Loading…
Reference in a new issue