From 848a22601c8648b6aafab9d9612d2eade692232f Mon Sep 17 00:00:00 2001 From: Drahflow Date: Fri, 27 Sep 2013 18:00:17 +0200 Subject: stosq instead of stosb, and 6% faster --- compiler/elymasGlobalStr.ey | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/compiler/elymasGlobalStr.ey b/compiler/elymasGlobalStr.ey index 01d2f17..e8f945c 100644 --- a/compiler/elymasGlobalStr.ey +++ b/compiler/elymasGlobalStr.ey @@ -272,11 +272,14 @@ [[ /rbx :popqReg - /rax /rax :xorqRegReg /rdi :popqReg + /rax /rax :xorqRegReg 16 /rdi /rcx :movqMemDisp8Reg 24 /rdi :addqImm8Reg - :reprcx :stosb + /rcx :decqReg + 3 /rcx :shrqImm8Reg + /rcx :incqReg + :reprcx :stosq /rbx :pushqReg :retn -- cgit v1.2.3