-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 3/23/2011 22:06, James K Beard wrote: > Jon: The simplest and quite possibly the most efficient way to implement a > standard function library in BCD decimal arithmetic is to convert to IEEE > standard double precision (or, if necessary, quad precision), use the > existing libraries, and convert back to BCD decimal floating point format. > The binary floating point will have more accuracy, thus providing a few > guard bits for the process, and hardware arithmetic (even quad precision is > supported by hardware because the preserved carry fields make quad precision > simple to support and allow good efficiency) is hard to match with software > floating point, which is what any BCD decimal arithmetic would be. > > James K Beard >
Hi, Thanks for the reply. To my understanding, converting DFP to BCD then IEEE float and back again seems to defeat the purpose using decimal floating points where exact representation is needed, I'm not too clear about this part. Will calculations suffer from inexact representation? According to the range of DECIMAL128, we do need quad precision. Looks like GCC does support quad precision via libquadmath, but its LGPL, so no suitable to be included directly. Kai, any inputs on the hardware arithmetic part? -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (MingW32) iEYEARECAAYFAk2KI6gACgkQp56AKe10wHdGQACeNHQ/VnBqvGxvlHtdD2zYLrHl XGQAoIgvfcPYB90V2ULPGiQP72rZElbj =l/kw -----END PGP SIGNATURE-----
0xED74C077.asc
Description: application/pgp-keys
------------------------------------------------------------------------------ Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
