Move binary math functions to Math namespace in math_funcs_binary header.
This commit is contained in:
parent
376903417d
commit
0ea5ece984
50 changed files with 330 additions and 286 deletions
|
|
@ -30,6 +30,7 @@
|
|||
|
||||
#include "memory.h"
|
||||
|
||||
#include "core/math/math_funcs_binary.h"
|
||||
#include "core/profiling/profiling.h"
|
||||
#include "core/templates/safe_refcount.h"
|
||||
|
||||
|
|
@ -63,7 +64,7 @@ static SafeNumeric<uint64_t> _max_mem_usage;
|
|||
#endif
|
||||
|
||||
void *Memory::alloc_aligned_static(size_t p_bytes, size_t p_alignment) {
|
||||
DEV_ASSERT(is_power_of_2(p_alignment));
|
||||
DEV_ASSERT(Math::is_power_of_2(p_alignment));
|
||||
|
||||
void *p1, *p2;
|
||||
if ((p1 = (void *)malloc(p_bytes + p_alignment - 1 + sizeof(uint32_t))) == nullptr) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue