tiny.simd.getBiasedExponent
Defined in floating.
Source
Source: lib/simd/src/floating.zig:33
zig
pub fn getBiasedExponent( comptime D: type, value: D.Vector,) D.rebind(@Int(.unsigned, @bitSizeOf(D.Lane))).Vector { requireFloat(D.Lane, "getBiasedExponent"); const U = @Int(.unsigned, @bitSizeOf(D.Lane)); const DU = D.rebind(U); const mantissa_bits = mantissaBits(D.Lane); const exponent_mask = exponentMask(D.Lane); var result: DU.Vector = undefined; inline for (0..D.lane_count) |index| { const bits: U = @bitCast(value[index]); result[index] = (bits >> mantissa_bits) & exponent_mask; } return result;}Source: lib/simd/src/root.zig:367
zig
pub const getBiasedExponent = floating.getBiasedExponent;Audit
| Definitions | 1 |
|---|---|
| Public names | 2 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |