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