mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 20:15:17 +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
Notes:
sideshowbarker
2024-07-18 04:38:32 +09:00
Author: https://github.com/IdanHo Commit: https://github.com/SerenityOS/serenity/commit/6e38076b481 Pull-request: https://github.com/SerenityOS/serenity/pull/12138
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
Reference in a new issue