mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 07:04:36 +00:00
moar changes
mac implementation had _mm_div (x86 intrinsic)
This commit is contained in:
parent
4e7fdd167b
commit
9ebcee420f
9 changed files with 248 additions and 16 deletions
27
Engine/source/math/public/math_backend.h
Normal file
27
Engine/source/math/public/math_backend.h
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
#pragma once
|
||||
#ifndef _MCONSTANTS_H_
|
||||
#include "math/mConstants.h"
|
||||
#endif
|
||||
#ifndef _PLATFORMASSERT_H_
|
||||
#include "platform/platformAssert.h"
|
||||
#endif
|
||||
#ifndef _FLOAT4_DISPATCH_H_
|
||||
#include "math/public/float4_dispatch.h"
|
||||
#endif
|
||||
|
||||
namespace math_backend
|
||||
{
|
||||
enum class backend
|
||||
{
|
||||
scalar,
|
||||
sse2,
|
||||
sse41,
|
||||
avx,
|
||||
avx2,
|
||||
neon
|
||||
};
|
||||
|
||||
static backend g_backend = backend::scalar;
|
||||
backend choose_backend(U32 cpu_flags);
|
||||
void install_from_cpu_flags(uint32_t cpu_flags);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue