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

Method ToFloat

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

Source from the content-addressed store, hash-verified

201} // namespace
202
203float Float16::ToFloat() const {
204 const uint32_t f_bits = BinaryConverter<uint32_t>::FromBinary16(bits_);
205 return SafeCopy<float>(f_bits);
206}
207
208Float16 Float16::FromFloat(float f) {
209 const uint32_t f_bits = SafeCopy<uint32_t>(f);

Callers 13

operator()Method · 0.45
CheckWithinUlpFunction · 0.45
CheckNotWithinUlpFunction · 0.45
GeneratorFactoryMethod · 0.45
TESTFunction · 0.45
float16.ccFile · 0.45
FormatFloatMethod · 0.45
CheckMethod · 0.45
CheckMaybeNullMethod · 0.45
ToCFloatFunction · 0.45
ExecMethod · 0.45
ExecMethod · 0.45

Calls

no outgoing calls

Tested by 4

CheckWithinUlpFunction · 0.36
CheckNotWithinUlpFunction · 0.36
TESTFunction · 0.36
ToCFloatFunction · 0.36