mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-07-02 02:49:15 +00:00
refactor: Fix build on i386
Some checks failed
CodeQL Advanced / Analyze (${{ matrix.language }}) (manual, c-cpp) (push) Has been cancelled
Deploy Documentation / Deploy Documentation to GitHub Pages (push) Has been cancelled
Build OS / Build Cross-Compiler & Toolchain (push) Has been cancelled
Build OS / Build amd64 (push) Has been cancelled
Build OS / Build i386 (push) Has been cancelled
Build OS / Build aarch64 (push) Has been cancelled
Some checks failed
CodeQL Advanced / Analyze (${{ matrix.language }}) (manual, c-cpp) (push) Has been cancelled
Deploy Documentation / Deploy Documentation to GitHub Pages (push) Has been cancelled
Build OS / Build Cross-Compiler & Toolchain (push) Has been cancelled
Build OS / Build amd64 (push) Has been cancelled
Build OS / Build i386 (push) Has been cancelled
Build OS / Build aarch64 (push) Has been cancelled
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
This commit is contained in:
@ -54,6 +54,7 @@ EXTERNC void *memset_sse2(void *dest, int c, size_t n)
|
||||
|
||||
for (; i + 64 <= n; i += 64)
|
||||
{
|
||||
#if defined(__amd64__)
|
||||
asmv("movd %0, %%xmm0\n"
|
||||
"movdqa %%xmm0, (%1)\n"
|
||||
"movdqa %%xmm0, 16(%1)\n"
|
||||
@ -62,6 +63,9 @@ EXTERNC void *memset_sse2(void *dest, int c, size_t n)
|
||||
:
|
||||
: "r"(c), "r"(((size_t)dest) + i)
|
||||
: "xmm0");
|
||||
#else
|
||||
#warning "memset_sse2 not implemented for other arch"
|
||||
#endif
|
||||
}
|
||||
|
||||
asmv("rep stosb\n" ::"a"((size_t)(c)),
|
||||
|
Reference in New Issue
Block a user