MCPcopy Create free account
hub / github.com/apache/arrow / FromFloat

Method FromFloat

cpp/src/arrow/util/float16.cc:208–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206}
207
208Float16 Float16::FromFloat(float f) {
209 const uint32_t f_bits = SafeCopy<uint32_t>(f);
210 return FromBits(BinaryConverter<uint32_t>::ToBinary16(f_bits));
211}
212
213double Float16::ToDouble() const {
214 const uint64_t d_bits = BinaryConverter<uint64_t>::FromBinary16(bits_);

Callers

nothing calls this directly

Calls 1

FromBitsFunction · 0.85

Tested by

no test coverage detected