mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 08:34:40 +00:00
Update math_backend.h
MSVC doesnt use __builtin_expect it is a GCC only flag
This commit is contained in:
parent
0ba8d948fb
commit
228b474f2e
1 changed files with 3 additions and 3 deletions
|
|
@ -44,7 +44,7 @@ namespace math_backend::float4::dispatch
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
inline Float4Funcs& GetFloat4()
|
inline Float4Funcs& GetFloat4()
|
||||||
{
|
{
|
||||||
if (__builtin_expect(gFloat4.mul == nullptr, 0))
|
if (gFloat4.mul == nullptr)
|
||||||
{
|
{
|
||||||
static std::once_flag once;
|
static std::once_flag once;
|
||||||
std::call_once(once, []{
|
std::call_once(once, []{
|
||||||
|
|
@ -62,7 +62,7 @@ namespace math_backend::float3::dispatch
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
inline Float3Funcs& GetFloat3()
|
inline Float3Funcs& GetFloat3()
|
||||||
{
|
{
|
||||||
if (__builtin_expect(gFloat3.mul == nullptr, 0))
|
if (gFloat3.mul == nullptr)
|
||||||
{
|
{
|
||||||
static std::once_flag once;
|
static std::once_flag once;
|
||||||
std::call_once(once, []{
|
std::call_once(once, []{
|
||||||
|
|
@ -81,7 +81,7 @@ namespace math_backend::mat44::dispatch
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
inline Mat44Funcs& GetMat44()
|
inline Mat44Funcs& GetMat44()
|
||||||
{
|
{
|
||||||
if (__builtin_expect(gMat44.mul_mat44 == nullptr, 0))
|
if (gMat44.mul_mat44 == nullptr)
|
||||||
{
|
{
|
||||||
static std::once_flag once;
|
static std::once_flag once;
|
||||||
std::call_once(once, []{
|
std::call_once(once, []{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue