tiny.simd.mulByFloorPow2
Defined in multiply.
Source
Source: lib/simd/src/multiply.zig:26
zig
pub fn mulByFloorPow2(comptime D: type, a: D.Vector, exponents: D.Vector) D.Vector { requireFloat(D.Lane, "mulByFloorPow2"); var result: D.Vector = undefined; inline for (0..D.lane_count) |index| { const exponent = exponents[index]; if (std.math.isNan(exponent) or exponent == std.math.inf(D.Lane)) { result[index] = a[index] * exponent; } else if (exponent == -std.math.inf(D.Lane)) { result[index] = a[index] * @as(D.Lane, 0); } else { result[index] = std.math.ldexp(a[index], floatExponentI32(@floor(exponent))); } } return result;}Source: lib/simd/src/root.zig:341
zig
pub const mulByFloorPow2 = multiply.mulByFloorPow2;Audit
| Definitions | 1 |
|---|---|
| Public names | 2 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |