Skip to documentation
SLOP

tiny.simd.abs

Reference tiny.simd abs

Defined in arithmetic.

Called byCallsarithmeticmaskedAbsarithmeticmaskedAbsOrtest sourcelib.simd.src.arithmetictest: Highway absolute saturating div...private sourcelib.simd.src.arithmeticabsIntegerarithmeticabs
Static calls · unresolved targets: 0 · external targets: 0.

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

Definitions1
Public names2
Members0
Version26.7.0
Revisiondaab053ee433