Jonathan Wakely wrote: > On Wed, 26 Nov 2025 at 03:07, Steve Summit <[email protected]> wrote: >>> ...Implementing decimal floating point must have been a ton of >>> not-immediately-rewarding work, and I'm impressed that it has >>> been completed already. >> >> They've been supported for many many years, but it's based on the >> N1312 proposal from 2008, not on C23: >> https://gcc.gnu.org/onlinedocs/gcc/Decimal-Float.html > > Support seems to have been first added to GCC 4.2.0, based on the > earlier N1176 draft: > https://gcc.gnu.org/onlinedocs/gcc-4.2.0/gcc/Decimal-Float.html#Decimal-Float
Thanks for the historical info. (And I had no idea it had been in there for that long! :-) ) My next question is, does anyone know how the decision is made about which dfp intrinsics to build into libgcc? For x86_64, at least, it seems to use some Intel-derived code underneath libgcc/config/libbid. But there's also a copy of libdecnumber, which I believe is based on Cowlishaw's work at IBM. (Perhaps libdecnumber is used on platforms where DPD is required?)
