tiny.simd.neg
Defined in arithmetic.
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
| Definitions | 1 |
|---|---|
| Public names | 2 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |