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

Method FromDouble

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

Source from the content-addressed store, hash-verified

216}
217
218Float16 Float16::FromDouble(double d) {
219 const uint64_t d_bits = SafeCopy<uint64_t>(d);
220 return FromBits(BinaryConverter<uint64_t>::ToBinary16(d_bits));
221}
222
223ARROW_EXPORT std::ostream& operator<<(std::ostream& os, Float16 arg) {
224 return (os << arg.ToFloat());

Callers

nothing calls this directly

Calls 1

FromBitsFunction · 0.85

Tested by

no test coverage detected