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