mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:57:44 +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
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue