mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-07-31 19:30:03 +00:00
don't create BIAT and UIAT sections when not requested
This commit is contained in:
committed by
Ryan Fleury
parent
9c93ee1579
commit
f0a967a15d
@@ -636,3 +636,26 @@ u64_array_bsearch(U64 *arr, U64 count, U64 value)
|
||||
return max_U64;
|
||||
}
|
||||
|
||||
////////////////////////////////
|
||||
|
||||
internal U64
|
||||
index_of_zero_u32(U32 *ptr, U64 count)
|
||||
{
|
||||
for (U64 i = 0; i < count; i += 1) {
|
||||
if (ptr[i] == 0) {
|
||||
return i;
|
||||
}
|
||||
}
|
||||
return max_U64;
|
||||
}
|
||||
|
||||
internal U64
|
||||
index_of_zero_u64(U64 *ptr, U64 count)
|
||||
{
|
||||
for (U64 i = 0; i < count; i += 1) {
|
||||
if (ptr[i] == 0) {
|
||||
return i;
|
||||
}
|
||||
}
|
||||
return max_U64;
|
||||
}
|
||||
|
||||
@@ -925,4 +925,9 @@ internal U64 ring_read(U8 *ring_base, U64 ring_size, U64 ring_pos, void *dst_dat
|
||||
|
||||
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);
|
||||
|
||||
#endif // BASE_CORE_H
|
||||
|
||||
Reference in New Issue
Block a user