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

Function half_float_value

cpp/gdb_arrow.py:208–214  ·  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

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

Callers 1

to_stringMethod · 0.85

Calls 1

unpackMethod · 0.45

Tested by

no test coverage detected