MCPcopy Create free account
hub / github.com/apache/fory / Bits

Method Bits

go/fory/bfloat16/bfloat16.go:35–37  ·  view source on GitHub ↗

Bits returns the raw bit pattern of the floating point number.

()

Source from the content-addressed store, hash-verified

33
34// Bits returns the raw bit pattern of the floating point number.
35func (f BFloat16) Bits() uint16 {
36 return uint16(f)
37}
38
39// BFloat16FromFloat32 converts a float32 to a BFloat16.
40// Rounds to nearest, ties to even.

Callers 3

TestBFloat16PrimitiveFunction · 0.95
TestBFloat16_ConversionFunction · 0.45
TestBFloat16_RoundingFunction · 0.45

Calls 1

uint16Function · 0.50

Tested by 3

TestBFloat16PrimitiveFunction · 0.76
TestBFloat16_ConversionFunction · 0.36
TestBFloat16_RoundingFunction · 0.36