File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -9081,6 +9081,8 @@ DF_VIEW_UI_FUNCTION_DEF(Memory)
9081
9081
ui_labelf ("U16:" );
9082
9082
ui_labelf ("U32:" );
9083
9083
ui_labelf ("U64:" );
9084
+ ui_labelf ("F32:" );
9085
+ ui_labelf ("F64:" );
9084
9086
}
9085
9087
UI_PrefWidth (ui_em (45.f , 1.f )) UI_HeightFill UI_Column UI_TextColor (df_rgba_from_theme_color (DF_ThemeColor_CodeNumeric ))
9086
9088
UI_PrefHeight (ui_px (row_height_px , 0.f ))
@@ -9093,15 +9095,21 @@ DF_VIEW_UI_FUNCTION_DEF(Memory)
9093
9095
U64 as_u16 = 0 ;
9094
9096
U64 as_u32 = 0 ;
9095
9097
U64 as_u64 = 0 ;
9098
+ F32 as_f32 = 0 ;
9099
+ F64 as_f64 = 0 ;
9096
9100
U64 cursor_off = mv -> cursor - viz_range_bytes .min ;
9097
9101
as_u8 = (U64 )* (U8 * )(visible_memory + cursor_off );
9098
9102
as_u16 = (U64 )* (U16 * )(visible_memory + cursor_off );
9099
9103
as_u32 = (U64 )* (U32 * )(visible_memory + cursor_off );
9100
9104
as_u64 = (U64 )* (U64 * )(visible_memory + cursor_off );
9105
+ as_f32 = (F32 )* (F32 * )(visible_memory + cursor_off );
9106
+ as_f64 = (F64 )* (F64 * )(visible_memory + cursor_off );
9101
9107
ui_labelf ("%02X (%I64u)" , as_u8 , as_u8 );
9102
9108
ui_labelf ("%04X (%I64u)" , as_u16 , as_u16 );
9103
9109
ui_labelf ("%08X (%I64u)" , as_u32 , as_u32 );
9104
9110
ui_labelf ("%016I64X (%I64u)" , as_u64 , as_u64 );
9111
+ ui_labelf ("%+.8e (%+.6a)" , as_f32 , as_f32 );
9112
+ ui_labelf ("%+.17e (%+.13a)" , as_f64 , as_f64 );
9105
9113
}
9106
9114
}
9107
9115
}
You can’t perform that action at this time.
0 commit comments