Hello,

Ahmet will be back only on Oct 6.

However, I do not fully understand this request.

Where does this requirement come from: “_Decimal128 arithmetic requires the 
round-to-nearest rounding mode”? Is that the DFP rounding mode set in SW using 
DFP library functions, or the BFP (Binary Floating-Point) rounding mode set in 
HW, in MXCSR and/or the x87 Control Register?

Thanks,

Marius





-----Original Message-----
From: H.J. Lu <hjl.to...@gmail.com>
Sent: Monday, September 08, 2025 5:53 AM
To: Hongtao Liu <crazy...@gmail.com>
Cc: GCC Patches <gcc-patches@gcc.gnu.org>; Liu, Hongtao 
<hongtao....@intel.com>; Cornea, Marius <marius.cor...@intel.com>; Anderson, 
Cristina S <cristina.s.ander...@intel.com>; Akkas, Ahmet <ahmet.ak...@intel.com>
Subject: PING: [PATCH] libbid: Set rounding mode to round-to-nearest for 
_Decimal128 arithmetic



On Sun, Aug 31, 2025 at 7:18 AM H.J. Lu 
<hjl.to...@gmail.com<mailto:hjl.to...@gmail.com>> wrote:

>

> On Sun, Aug 31, 2025 at 6:21 AM Hongtao Liu 
> <crazy...@gmail.com<mailto:crazy...@gmail.com>> wrote:

> >

> > On Sun, Aug 31, 2025 at 11:15 AM H.J. Lu 
> > <hjl.to...@gmail.com<mailto:hjl.to...@gmail.com>> wrote:

> > >

> > > Since _Decimal128 arithmetic requires the round-to-nearest

> > > rounding mode, define DFP_INIT_ROUNDMODE and

> > > DFP_RESTORE_ROUNDMODE, similar to FP_INIT_ROUNDMODE in

> > > sfp-machine.h, to set the rounding mode to round-to-nearest at

> > > _Decimal128 related arithmetic function entrances and restores it upon 
> > > return.

> >

> > Akkas, Ahmet is on vacation, let's wait until he's back and has

> > comments on the patch.

>

> Sure.  Here is the v2 patch to check if _SOFT_FLOAT is defined.

>



PING.



--

H.J.

Reply via email to