mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-19 20:30:58 +00:00
all float3 and float4 functions and isas
completed all options of float3 and float4 functions in isas and math_c neon still to be done but that will be on mac.
This commit is contained in:
parent
18d0aa0418
commit
f0a3251cd3
16 changed files with 593 additions and 90 deletions
|
|
@ -47,7 +47,7 @@ namespace math_backend::float3
|
|||
{
|
||||
f32x4 va = v_load3(a);
|
||||
f32x4 vb = v_load3(b);
|
||||
f32x4 vr = v_div_fast(va, vb);
|
||||
f32x4 vr = v_div(va, vb);
|
||||
v_store3(r, vr);
|
||||
}
|
||||
|
||||
|
|
@ -56,7 +56,7 @@ namespace math_backend::float3
|
|||
{
|
||||
f32x4 va = v_load3(a);
|
||||
f32x4 vs = v_set1(s);
|
||||
f32x4 vr = v_div_fast(va, vs);
|
||||
f32x4 vr = v_div(va, vs);
|
||||
v_store3(r, vr);
|
||||
}
|
||||
|
||||
|
|
@ -112,4 +112,12 @@ namespace math_backend::float3
|
|||
v_store3(r, vr);
|
||||
}
|
||||
|
||||
inline void float3_cross_impl(const float* a, const float* b, float* r)
|
||||
{
|
||||
f32x4 va = v_load3(a);
|
||||
f32x4 vb = v_load3(b);
|
||||
f32x4 vcross = v_cross(va, vb);
|
||||
v_store3(r, vcross);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue