Minimize unneeded casts

This commit is contained in:
gingerBill
2021-03-03 14:31:17 +00:00
parent 75f127af7c
commit b727b6438b
24 changed files with 108 additions and 109 deletions
+2 -2
View File
@@ -195,7 +195,7 @@ memory_compare :: proc "contextless" (a, b: rawptr, n: int) -> int #no_bounds_ch
n := uintptr(n);
SU :: size_of(uintptr);
fast := uintptr(n/SU + 1);
fast := n/SU + 1;
offset := (fast-1)*SU;
curr_block := uintptr(0);
if n < SU {
@@ -232,7 +232,7 @@ memory_compare_zero :: proc "contextless" (a: rawptr, n: int) -> int #no_bounds_
n := uintptr(n);
SU :: size_of(uintptr);
fast := uintptr(n/SU + 1);
fast := n/SU + 1;
offset := (fast-1)*SU;
curr_block := uintptr(0);
if n < SU {