mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-20 02:54:16 +00:00
- add dword store to memset code
This commit is contained in:
parent
00d41432d8
commit
6c31d2e965
1 changed files with 6 additions and 1 deletions
|
@ -604,7 +604,12 @@ void JitCompiler::Setup()
|
||||||
{
|
{
|
||||||
auto zero32 = newTempInt32();
|
auto zero32 = newTempInt32();
|
||||||
cc.xor_(zero32, zero32);
|
cc.xor_(zero32, zero32);
|
||||||
for (unsigned int i = sseend; i < clearend; i++)
|
|
||||||
|
unsigned int dwordend = sseend + (clearend - sseend) / 4 * 4;
|
||||||
|
for (unsigned int i = sseend; i < dwordend; i += 4)
|
||||||
|
cc.mov(asmjit::x86::dword_ptr(vmframe, i), zero32);
|
||||||
|
|
||||||
|
for (unsigned int i = dwordend; i < clearend; i++)
|
||||||
cc.mov(asmjit::x86::byte_ptr(vmframe, i), zero32.r8Lo());
|
cc.mov(asmjit::x86::byte_ptr(vmframe, i), zero32.r8Lo());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue