tiny.simd.abs
Defined in arithmetic.
Source
Source: lib/simd/src/arithmetic.zig:49
zig
pub fn abs(comptime D: type, value: D.Vector) D.Vector { return switch (@typeInfo(D.Lane)) { .int => |info| if (info.signedness == .signed) absInteger(D, value) else @compileError("abs requires signed integer or floating-point lanes"), .float => @abs(value), else => unreachable, };}Source: lib/simd/src/root.zig:284
zig
pub const abs = arithmetic.abs;Audit
| Definitions | 1 |
|---|---|
| Public names | 2 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |