further sse simd additions

avx2 float3 added
added normalize_magnitude
added divide fast to float3 may copy to float4

move static spheremesh to drawSphere (initialize on first use) so platform has a chance to load the math backend
This commit is contained in:
marauder2k7 2026-02-26 21:11:31 +00:00
parent 2559145c06
commit 18d0aa0418
16 changed files with 337 additions and 77 deletions

View file

@ -1,4 +1,7 @@
#pragma once
#ifndef _MATH_BACKEND_H_
#define _MATH_BACKEND_H_
#ifndef _MCONSTANTS_H_
#include "math/mConstants.h"
#endif
@ -8,6 +11,9 @@
#ifndef _FLOAT4_DISPATCH_H_
#include "math/public/float4_dispatch.h"
#endif
#ifndef _FLOAT3_DISPATCH_H_
#include "math/public/float3_dispatch.h"
#endif
namespace math_backend
{
@ -25,3 +31,5 @@ namespace math_backend
backend choose_backend(U32 cpu_flags);
void install_from_cpu_flags(uint32_t cpu_flags);
}
#endif // !_MATH_BACKEND_H_