Thanks, Andreas.

Just what I needed.

I see that the decimal.h header files are under /usr/include/4.5/
Does this mean I can't use them with gcc 4.3?

Roger

On Thu, 2014-10-09 at 09:32 +0200, Andreas Krebbel wrote:

> On 10/09/2014 08:48 AM, roger wrote:
> > Does anybody have any experience using decimal floating point libraries
> > from C/C++ on Z-Linux?   I have installed the libdfp1 library on
> > SLES-11, but can't find any header files or documentation for its use.
> > The requirement we have is for currency transactions according to
> > Generally Accepted Accounting Practices.
>
> Hi,
>
> basic arithmetic with DFP numbers can be done with the language extensions 
> provided by GCC without
> libdfp.  Use the _Decimal64 and _Decimal128 data types (we don't have 
> hardware support for
> _Decimal32) with at least the -march=z10 GCC option to generate DFP hardware 
> instructions. For prior
> -march levels a DFP software implementation will be used.
>
> libdfp is only needed if you would like to use printf or math library 
> functions (like in libm for
> bfp). The printf functionality in libdfp uses Glibc printf hooks to implement 
> additional format
> letters for the existing Glibc printf function.
>
> Also libdfp can provide you with a way to compile applications able to run 
> with software and
> hardware DFP decided at runtime depending on the CPU level.
>
> For more details you might want to have a look into our white paper available 
> on developerworks:
> http://www.ibm.com/developerworks/linux/linux390/perf/tuning_compiler.html#dfp
>
> Bye,
>
> -Andreas-
>
> >
> > ----------------------------------------------------------------------
> > For LINUX-390 subscribe / signoff / archive access instructions,
> > send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or 
> > visit
> > http://www.marist.edu/htbin/wlvindex?LINUX-390
> > ----------------------------------------------------------------------
> > For more information on Linux on System z, visit
> > http://wiki.linuxvm.org/
> >
>
> ----------------------------------------------------------------------
> For LINUX-390 subscribe / signoff / archive access instructions,
> send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
> http://www.marist.edu/htbin/wlvindex?LINUX-390
> ----------------------------------------------------------------------
> For more information on Linux on System z, visit
> http://wiki.linuxvm.org/


--
Roger Evans, Vitec Autodata Norge A/S mob: +47 93 25 92 36
http://www.autodata.no


----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/

Reply via email to