JUMBO vecmath completion update

This commit is contained in:
2026-01-04 15:43:10 +01:00
parent b09200b7ab
commit ed6391e97a
24 changed files with 3141 additions and 878 deletions

View File

@@ -59,6 +59,16 @@ pub const epu64 = simd.epu64;
const trig = @import("trig.zig");
pub const rad_per_turn = trig.rad_per_turn;
pub const deg_per_turn = trig.deg_per_turn;
pub const turns_per_rad = trig.turns_per_rad;
pub const turns_per_deg = trig.turns_per_deg;
pub const turnsToRadians = trig.turnsToRadians;
pub const turnsToDegrees = trig.turnsToDegrees;
pub const radiansToTurns = trig.radiansToTurns;
pub const degreesToTurns = trig.degreesToTurns;
pub const cos = trig.cos;
pub const cos_x8 = trig.cos_x8;
pub const sin = trig.sin;
@@ -68,8 +78,8 @@ pub const cossin_x8 = trig.cossin_x8;
// -----------------------------------------------------------------------------
pub inline fn lerp(a: f32, b: f32, t: f32) f32 {
return @mulAdd(f32, t, b, @mulAdd(f32, -t, a, a));
pub inline fn lerp(comptime T: type, a: T, b: T, t: T) T {
return @mulAdd(T, t, b, @mulAdd(T, -t, a, a));
}
test "refAllDecls" {