Merge pull request #107452 from Ivorforce/bit-math-header

Move binary math functions to `Math` namespace in `math_funcs_binary.h`
This commit is contained in:
Thaddeus Crews
2026-02-17 09:28:31 -06:00
50 changed files with 330 additions and 286 deletions
+1 -1
View File
@@ -126,7 +126,7 @@ StringBuffer<SHORT_BUFFER_SIZE> &StringBuffer<SHORT_BUFFER_SIZE>::reserve(int p_
}
bool need_copy = string_length > 0 && buffer.is_empty();
buffer.resize_uninitialized(next_power_of_2((uint32_t)p_size));
buffer.resize_uninitialized(Math::next_power_of_2((uint32_t)p_size));
if (need_copy) {
memcpy(buffer.ptrw(), short_buffer, string_length * sizeof(char32_t));
}