binary search for U64 and Rng1U64 arrays

This commit is contained in:
Nikita Smith
2025-03-03 17:04:07 -08:00
parent a06f576161
commit d5811b7748
4 changed files with 71 additions and 0 deletions
+4
View File
@@ -885,4 +885,8 @@ internal U64 ring_read(U8 *ring_base, U64 ring_size, U64 ring_pos, void *dst_dat
#define quick_sort(ptr, count, element_size, cmp_function) qsort((ptr), (count), (element_size), (int (*)(const void *, const void *))(cmp_function))
////////////////////////////////
internal U64 u64_array_bsearch(U64 *arr, U64 count, U64 value);
#endif // BASE_CORE_H