Skip to documentation
SLOP

tiny.simd.mulByFloorPow2

Reference tiny.simd mulByFloorPow2

Defined in multiply.

Called byCallstest sourcelib.simd.src.multiplytest: Highway rounded and power-of-tw...private sourcelib.simd.src.multiplyfloatExponentI32private sourcelib.simd.src.multiplyrequireFloatmultiplymulByFloorPow2
Static calls · unresolved targets: 0 · external targets: 0.

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

Definitions1
Public names2
Members0
Version26.7.0
Revisiondaab053ee433