this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

updated zmath

Altagos cb75e875 1cd5e1ab

+3 -3
+3 -3
libs/zmath/src/zmath.zig
··· 329 329 // zig fmt: on 330 330 331 331 pub inline fn veclen(comptime T: type) comptime_int { 332 - return @typeInfo(T).Vector.len; 332 + return @typeInfo(T).vector.len; 333 333 } 334 334 335 335 pub inline fn splat(comptime T: type, value: f32) T { ··· 413 413 } 414 414 415 415 pub inline fn arr3Ptr(ptr: anytype) *const [3]f32 { 416 - comptime assert(@typeInfo(@TypeOf(ptr)) == .Pointer); 416 + comptime assert(@typeInfo(@TypeOf(ptr)) == .pointer); 417 417 const T = std.meta.Child(@TypeOf(ptr)); 418 418 comptime assert(T == F32x4); 419 419 return @as(*const [3]f32, @ptrCast(ptr)); 420 420 } 421 421 422 422 pub inline fn arrNPtr(ptr: anytype) [*]const f32 { 423 - comptime assert(@typeInfo(@TypeOf(ptr)) == .Pointer); 423 + comptime assert(@typeInfo(@TypeOf(ptr)) == .pointer); 424 424 const T = std.meta.Child(@TypeOf(ptr)); 425 425 comptime assert(T == Mat or T == F32x4 or T == F32x8 or T == F32x16); 426 426 return @as([*]const f32, @ptrCast(ptr));