This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
decimal floating point
- From: Franz Fehringer <fehrin2 at googlemail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Tue, 19 Jun 2012 07:51:12 +0200
- Subject: decimal floating point
Hi,
I am investigating the possibilities of using decimal floating point
arithmetic with gcc (on Linux / x86_64 to be explicit).
Are _Decimal32/_Decimal64/_Decimal128 available as builtin types without
further action or do i as a DFP consumer have to issue the correspondent
typedef/float/attributeS by myself (as is done in the testcases and the
std::decimal headerS)?
How do i convert _Decimal32/_Decimal64/_Decimal128/std::decimal from/to
string/char* (and do cout/stdout I/O)?
Can the (internal?) std::decimal method __getval (giving one of
_Decimal32/_Decimal64/_Decimal128) be used by me as a user?
Are there plans to add DFP support to glibc?
Are there good examples out there showing the superiority of DFP
arithmetic over ordinary (binary) FP arithmetic in the domain of
monetary calculations?
Many thanks in advance
Franz