From 228b474f2e3e8be809d8e5cf795972c238711613 Mon Sep 17 00:00:00 2001 From: marauder2k7 Date: Wed, 4 Mar 2026 08:54:23 +0000 Subject: [PATCH] Update math_backend.h MSVC doesnt use __builtin_expect it is a GCC only flag --- Engine/source/math/public/math_backend.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Engine/source/math/public/math_backend.h b/Engine/source/math/public/math_backend.h index f704f0db5..9c5575823 100644 --- a/Engine/source/math/public/math_backend.h +++ b/Engine/source/math/public/math_backend.h @@ -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, []{