mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-10-14 21:09:41 -07:00
time tests
This commit is contained in:
1 parent
9e19fe5193
commit
cd4f81d473
4 files changed
+55
-17
No files matched your search
@@ -714,6 +714,15 @@ index_of_zero_u64(U64 *ptr, U64 count)
|
||||
return max_U64;
|
||||
}
|
||||
|
||||
internal U64
|
||||
count_digits_u64(U64 v, U64 radix)
|
||||
{
|
||||
if (v == 0) { return 1; }
|
||||
U64 count = 0;
|
||||
for (U64 x = v; x > 0; x /= radix) { count += 1; }
|
||||
return count;
|
||||
}
|
||||
|
||||
////////////////////////////////
|
||||
//~ rjf: Third Party Includes
|
||||
|
||||
|
||||
@@ -1069,5 +1069,6 @@ internal U64 u64_array_bsearch(U64 *arr, U64 count, U64 value);
|
||||
|
||||
internal U64 index_of_zero_u32(U32 *ptr, U64 count);
|
||||
internal U64 index_of_zero_u64(U64 *ptr, U64 count);
|
||||
internal U64 count_digits_u64(U64 v, U64 radix);
|
||||
|
||||
#endif // BASE_CORE_H
|
||||
Reference in new issue
Block a user