tiny.simd.bf16FromF64
Defined in BFloat16.
Source
Source: lib/simd/src/bfloat.zig:18
zig
pub fn fromF64(value: f64) BFloat16 { const bits: u64 = @bitCast(value); const rounded_bits = (bits & 0xffff_ffc0_0000_0000) | ((bits +% 0x0000_003f_ffff_ffff) & 0x0000_0040_0000_0000); return fromF32(@floatCast(@as(f64, @bitCast(rounded_bits)))); }Source: lib/simd/src/root.zig:146
zig
pub const bf16FromF64 = BFloat16.fromF64;Also reachable as
Audit
| Definitions | 1 |
|---|---|
| Public names | 3 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |