Browse Source

Add #no_bounds_check to crc procedures

gingerBill 4 years ago
parent
commit
de13584be2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      core/hash/crc.odin

+ 2 - 2
core/hash/crc.odin

@@ -1,13 +1,13 @@
 package hash
 
-crc32 :: proc(data: []byte) -> u32 {
+crc32 :: proc(data: []byte) -> u32 #no_bounds_check {
 	result := ~u32(0);
 	for b in data {
 		result = result>>8 ~ _crc32_table[(result ~ u32(b)) & 0xff];
 	}
 	return ~result;
 }
-crc64 :: proc(data: []byte) -> u64 {
+crc64 :: proc(data: []byte) -> u64 #no_bounds_check {
 	result := ~u64(0);
 	for b in data {
 		result = result>>8 ~ _crc64_table[(result ~ u64(b)) & 0xff];