tiny.simd.demoteToNearestInt
Defined in convert.
Source
Source: lib/simd/src/convert.zig:46
zig
pub fn demoteToNearestInt(comptime D: type, value: anytype) D.Vector { const V = @TypeOf(value); const From = sourceLane(V); validateLaneCount(D, V); if (@typeInfo(D.Lane) != .int or @typeInfo(D.Lane).int.signedness != .signed or @typeInfo(From) != .float or @bitSizeOf(D.Lane) >= @bitSizeOf(From)) { @compileError("demoteToNearestInt requires narrower signed integer destinations"); } return roundEvenToInt(D, value);}Source: lib/simd/src/root.zig:800
zig
pub const demoteToNearestInt = convert.demoteToNearestInt;Audit
| Definitions | 1 |
|---|---|
| Public names | 2 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |