Skip to documentation
SLOP

tiny.simd.neg

Reference tiny.simd neg

Defined in arithmetic.

Called byCallsNo direct callsarithmeticnegMulAddarithmeticnegMulSubarithmeticneg
Static calls · unresolved targets: 0 · external targets: 0.

Source

Source: lib/simd/src/arithmetic.zig:26

zig
pub fn neg(comptime D: type, value: D.Vector) D.Vector {    return switch (@typeInfo(D.Lane)) {        .int => |info| if (info.signedness == .signed)            @as(D.Vector, @splat(0)) -% value        else            @compileError("neg requires signed integer or floating-point lanes"),        .float => -value,        else => unreachable,    };}

Source: lib/simd/src/root.zig:282

zig
pub const neg = arithmetic.neg;

Audit

Definitions1
Public names2
Members0
Version26.7.0
Revisiondaab053ee433