From 9701ae893725b3d420a7888af4a142b328e8dcb3 Mon Sep 17 00:00:00 2001 From: GutPuncher Date: Sat, 30 Mar 2024 05:40:07 -0400 Subject: [PATCH] chore: bare-metal optimizations code indent fix --- src/Kernel/KUtils.ZC | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Kernel/KUtils.ZC b/src/Kernel/KUtils.ZC index 777d8874..71ce3567 100755 --- a/src/Kernel/KUtils.ZC +++ b/src/Kernel/KUtils.ZC @@ -68,10 +68,10 @@ _MEMCOPY:: MOV RDI, U64 SF_ARG1[RBP] // dst MOV RSI, U64 SF_ARG2[RBP] // src MOV RCX, U64 SF_ARG3[RBP] // count - TEST RDI, 0xF // check if dst is 16byte aligned - JNZ @@05 // if not 16byte aligned, jump down to MOVUPS unaligned checks - TEST RSI, 0xF // check if src is 16byte aligned - JNZ @@05 // if not 16byte aligned, jump down to MOVUPS unaligned checks + TEST RDI, 0xF // check if dst is 16byte aligned + JNZ @@05 // if not 16byte aligned, jump down to MOVUPS unaligned checks + TEST RSI, 0xF // check if src is 16byte aligned + JNZ @@05 // if not 16byte aligned, jump down to MOVUPS unaligned checks @@03: // SSE 128-bit ALIGNED memcopy (count >= 16) CMP RCX, 16 // count <, >, == 16 bytes? JL @@10 // if count less than 16, jump down