#endif
// If machine state is invalid, then simply exit
- ldr x1, [x0, #MachState__isValid]
- cmp x1, #0
+ ldr w1, [x0, #MachState__isValid]
+ cmp w1, #0
beq LOCAL_LABEL(Done)
RestoreRegMS 19, X19
// }
// }
//
-// while(count > 8)
+// while(count >= 8)
// {
// *(uintptr_t*)dst = valEx;
// dst = (uintptr_t*)dst + 1;
cbnz x2,LOCAL_LABEL(JIT_MemSet_0x60)
LOCAL_LABEL(JIT_MemSet_0x7c):
cmp x2,#8
- bls LOCAL_LABEL(JIT_MemSet_0xb8)
- mov x8,#-9
- add x8,x2,x8
- lsr x8,x8,#3
- add x11,x8,#1
+ blo LOCAL_LABEL(JIT_MemSet_0xb8)
+ lsr x8,x2,#3
+ mov x11,x8
mov x10,x0
add x8,x10,x11, lsl #3
LOCAL_LABEL(JIT_MemSet_0x9c):
// }
// }
//
-// while(count > 8)
+// while(count >= 8)
// {
// *(uintptr_t*)dst = *(uintptr_t*)src;
// dst = (uintptr_t*)dst + 1;
cbnz x2,LOCAL_LABEL(JIT_MemCpy_0x5c)
LOCAL_LABEL(JIT_MemCpy_0x80):
cmp x2,#8
- bls LOCAL_LABEL(JIT_MemCpy_0xb4)
- mov x8,#-9
- add x8,x2,x8
- lsr x8,x8,#3
- add x9,x8,#1
+ blo LOCAL_LABEL(JIT_MemCpy_0xb4)
+ lsr x9,x2,#3
mov x8,#-8
madd x2,x9,x8,x2
LOCAL_LABEL(JIT_MemCpy_0xa0):