Download:
    dfp-v0.01.tgz
    dfp-v0.02.tgz
    dfp-v0.03.tgz For use with GCC provided decfloat.h.
    dfp-v0.04.tgz For use with GCC with decfloat.h merged into float.h.
    dfp-v0.05.tgz 
    dfp-v0.06.tgz 
    dfp-v0.07.tgz 

Introduction:

Here is the fifth (preview) implementation of the Decimal Floating
Point C runtime Library.  The DFP C library is an implementation of the Draft
Technical Report ISO/IEC WDTR 24732, which extends the C programming
language to support decimal floating point arithmetic.  The current draft
is ISO/IEC JTC1 SC22 WG14 N1241:

    n1176.pdf
    n1241.pdf

For a number of reasons this version of the DFP library is implemented as
a GLIBC add-on.  In its current form it has no platform-specific code and
should build for any platform that has the required decimal float support in
GCC (powerpc*-linux, x86-linux, x86_64-linux).  Decimal float support is in
mainline GCC, to become GCC 4.2.0, and in the ibm/gcc-4_1-branch of the GCC
Subversion repository.  Decimal float support is not enabled by default;
configure GCC with --enable-decimal-float.

The eventual location of the DFP libraries, in an existing project or a new
separate project, is yet to be decided.  It is our intent to contribute this
code to FSF once we have an agreement with the community on how to proceed.
We post this preview here to expose it to the community for review and to
solicit input on how best to address the remaining technical issues and the
best way to proceed.

Building libdfp:

In the GLIBC base directory unpack the DFP archive 'dfp.tgz'.  This will
populate a 'dfp' add-on directory.  Add 'dfp' to the GLIBC --enable-add-ons
configuration right before nptl:

    --enable-add-ons=dfp,nptl

The GLIBC DFP add-on overrides some of the base GLIBC files (e.g. vfprintf,
vfscanf, math.h, mathcalls.h, fenv.h).  This release of the DFP add-on
overrides files checked out of GLIBC cvs-head as of 09-20-2006.