Move binary math functions to Math namespace in math_funcs_binary header.

This commit is contained in:
Lukas Tenbrink
2025-06-13 01:43:35 +02:00
parent 376903417d
commit 0ea5ece984
50 changed files with 330 additions and 286 deletions
+3 -3
View File
@@ -287,7 +287,7 @@ _FORCE_INLINE_ TextServerFallback::FontTexturePosition TextServerFallback::find_
// Could not find texture to fit, create one.
int texsize = MAX(p_data->size.x * 0.125, 256);
texsize = next_power_of_2((uint32_t)texsize);
texsize = Math::next_power_of_2((uint32_t)texsize);
if (p_msdf) {
texsize = MIN(texsize, 2048);
@@ -295,10 +295,10 @@ _FORCE_INLINE_ TextServerFallback::FontTexturePosition TextServerFallback::find_
texsize = MIN(texsize, 1024);
}
if (mw > texsize) { // Special case, adapt to it?
texsize = next_power_of_2((uint32_t)mw);
texsize = Math::next_power_of_2((uint32_t)mw);
}
if (mh > texsize) { // Special case, adapt to it?
texsize = next_power_of_2((uint32_t)mh);
texsize = Math::next_power_of_2((uint32_t)mh);
}
ShelfPackTexture tex = ShelfPackTexture(texsize, texsize);