tiny.simd.saturatedNeg
Defined in arithmetic.
Source
Source: lib/simd/src/arithmetic.zig:37
zig
pub fn saturatedNeg(comptime D: type, value: D.Vector) D.Vector { requireSignedInteger(D.Lane, "saturatedNeg"); var result: D.Vector = undefined; inline for (0..D.lane_count) |index| { result[index] = if (value[index] == std.math.minInt(D.Lane)) std.math.maxInt(D.Lane) else -value[index]; } return result;}Source: lib/simd/src/root.zig:283
zig
pub const saturatedNeg = arithmetic.saturatedNeg;Audit
| Definitions | 1 |
|---|---|
| Public names | 2 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |