From 1ba0ea157fdde73df5c9f242c6ad4db7abddeaca Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Wed, 16 Apr 2025 12:03:05 +0200 Subject: [INTERP] Added x87 Precision Control set to 24bits handling --- src/include/regs.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/include') diff --git a/src/include/regs.h b/src/include/regs.h index 58070c8a..d83fbcbd 100644 --- a/src/include/regs.h +++ b/src/include/regs.h @@ -245,6 +245,12 @@ typedef union { } f; uint16_t x16; } x87control_t; +/* +Precision Controls: 00b = 24bits, 01b=reserved, 10b=53bits and 11b=64bits +The precision-control bits only affect the results of the following floating-point instructions: FADD, FADDP, FIADD, +FSUB, FSUBP, FISUB, FSUBR, FSUBRP, FISUBR, FMUL, FMULP, FIMUL, FDIV, FDIVP, FIDIV, FDIVR, FDIVRP, FIDIVR, +and FSQRT. +*/ typedef union { struct __attribute__ ((__packed__)) { -- cgit 1.4.1