diff options
| author | Feoramund <161657516+Feoramund@users.noreply.github.com> | 2025-05-27 15:25:30 -0400 |
|---|---|---|
| committer | Feoramund <161657516+Feoramund@users.noreply.github.com> | 2025-05-27 15:25:30 -0400 |
| commit | b5bc0fdcda8285656562d701fae0e4d6f92ae183 (patch) | |
| tree | 79356ef0aeea7a805594d673c131f6e5e05ae03b /base/runtime | |
| parent | db5c45602d927bb9dc8f1e9dc88ed4561e5991c3 (diff) | |
Remove commented block of code
Diffstat (limited to 'base/runtime')
| -rw-r--r-- | base/runtime/internal.odin | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/base/runtime/internal.odin b/base/runtime/internal.odin index 38b7f662c..82ae6ffa4 100644 --- a/base/runtime/internal.odin +++ b/base/runtime/internal.odin @@ -238,65 +238,6 @@ memory_equal :: proc "contextless" (x, y: rawptr, n: int) -> bool { } } return true - -/* - - when size_of(uint) == 8 { - if word_length := length >> 3; word_length != 0 { - for _ in 0..<word_length { - if intrinsics.unaligned_load((^u64)(a)) != intrinsics.unaligned_load((^u64)(b)) { - return false - } - a = a[size_of(u64):] - b = b[size_of(u64):] - } - } - - if length & 4 != 0 { - if intrinsics.unaligned_load((^u32)(a)) != intrinsics.unaligned_load((^u32)(b)) { - return false - } - a = a[size_of(u32):] - b = b[size_of(u32):] - } - - if length & 2 != 0 { - if intrinsics.unaligned_load((^u16)(a)) != intrinsics.unaligned_load((^u16)(b)) { - return false - } - a = a[size_of(u16):] - b = b[size_of(u16):] - } - - if length & 1 != 0 && a[0] != b[0] { - return false - } - return true - } else { - if word_length := length >> 2; word_length != 0 { - for _ in 0..<word_length { - if intrinsics.unaligned_load((^u32)(a)) != intrinsics.unaligned_load((^u32)(b)) { - return false - } - a = a[size_of(u32):] - b = b[size_of(u32):] - } - } - - length &= 3 - - if length != 0 { - for i in 0..<length { - if a[i] != b[i] { - return false - } - } - } - - return true - } -*/ - } memory_compare :: proc "contextless" (a, b: rawptr, n: int) -> int #no_bounds_check { switch { |