Update math_backend.h

MSVC doesnt use __builtin_expect it is a GCC only flag
This commit is contained in:
marauder2k7 2026-03-04 08:54:23 +00:00
parent 0ba8d948fb
commit 228b474f2e

View file

@ -44,7 +44,7 @@ namespace math_backend::float4::dispatch
//--------------------------------------------------
inline Float4Funcs& GetFloat4()
{
if (__builtin_expect(gFloat4.mul == nullptr, 0))
if (gFloat4.mul == nullptr)
{
static std::once_flag once;
std::call_once(once, []{
@ -62,7 +62,7 @@ namespace math_backend::float3::dispatch
//--------------------------------------------------
inline Float3Funcs& GetFloat3()
{
if (__builtin_expect(gFloat3.mul == nullptr, 0))
if (gFloat3.mul == nullptr)
{
static std::once_flag once;
std::call_once(once, []{
@ -81,7 +81,7 @@ namespace math_backend::mat44::dispatch
//--------------------------------------------------
inline Mat44Funcs& GetMat44()
{
if (__builtin_expect(gMat44.mul_mat44 == nullptr, 0))
if (gMat44.mul_mat44 == nullptr)
{
static std::once_flag once;
std::call_once(once, []{