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

Function half_float_value

cpp/gdb_arrow.py:210–216  ·  view source on GitHub ↗

Return a Python float of the given half-float (represented as a uint64_t gdb.Value).

(val)

Source from the content-addressed store, hash-verified

208
209
210def half_float_value(val):
211 """
212 Return a Python float of the given half-float (represented as a uint64_t
213 gdb.Value).
214 """
215 buf = gdb.selected_inferior().read_memory(val.address, 2)
216 return struct.unpack("e", buf)[0]
217
218
219def load_atomic(val):

Callers 1

to_stringMethod · 0.85

Calls 1

unpackMethod · 0.45

Tested by

no test coverage detected