moar changes

mac implementation had _mm_div (x86 intrinsic)
This commit is contained in:
marauder2k7 2026-02-26 16:40:01 +00:00
parent 4e7fdd167b
commit 9ebcee420f
9 changed files with 248 additions and 16 deletions

View 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);
}