Re: [PATCH] c: Add _Decimal64x support

2024-11-14 Thread Jakub Jelinek
On Thu, Nov 14, 2024 at 12:22:37PM +, Joseph Myers wrote: > On Thu, 14 Nov 2024, Jakub Jelinek wrote: > > > --- gcc/ginclude/float.h.jj 2024-10-25 10:00:29.472767800 +0200 > > +++ gcc/ginclude/float.h2024-11-13 17:50:46.625592746 +0100 > > @@ -515,51 +515,63 @@ see the files COPYING3 and C

Re: [PATCH] c: Add _Decimal64x support

2024-11-14 Thread Joseph Myers
On Thu, 14 Nov 2024, Jakub Jelinek wrote: > Should DEC64X_SUBNORMAL_MIN/DEC64X_TRUE_MIN macros be defined at all and if > yes, under the same conditions as the rest? > C23 only talks about *_TRUE_MIN, not about *_SUBNORMAL_MIN. So there should be no DEC64X_SUBNORMAL_MIN (but should be DEC64X_TRUE

Re: [PATCH] c: Add _Decimal64x support

2024-11-14 Thread Joseph Myers
On Thu, 14 Nov 2024, Jakub Jelinek wrote: > --- gcc/ginclude/float.h.jj 2024-10-25 10:00:29.472767800 +0200 > +++ gcc/ginclude/float.h 2024-11-13 17:50:46.625592746 +0100 > @@ -515,51 +515,63 @@ see the files COPYING3 and COPYING.RUNTI > #undef DEC32_MANT_DIG > #undef DEC64_MANT_DIG > #u

[PATCH] c: Add _Decimal64x support

2024-11-14 Thread Jakub Jelinek
Hi! The following patch adds _Decimal64x type support. Our dfp libraries (dpd & libbid) can only handle decimal32, decimal64 and decimal128 formats and I don't see that changing any time soon, so the following patch just hardcodes that _Decimal64x has the same mode as _Decimal128 (but is a distin