Return a Python float of the given half-float (represented as a uint64_t gdb.Value).
(val)
| 208 | |
| 209 | |
| 210 | def 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 | |
| 219 | def load_atomic(val): |