libdecnumber: Modify dconfig.h to Integrate with QEMU
authorTom Musta <tommusta@gmail.com>
Mon, 21 Apr 2014 20:54:48 +0000 (15:54 -0500)
committerAlexander Graf <agraf@suse.de>
Mon, 16 Jun 2014 11:24:28 +0000 (13:24 +0200)
commit7275585b8c0dda0720255c45489045b0c31092cc
treee9e557dda076b9e77b53469261272afda3aec152
parent0f2d3732202818fb85c09d1c204a08c4d79b70bc
libdecnumber: Modify dconfig.h to Integrate with QEMU

Modify the dconfig.h header file so that libdecnumber code integrates QEMU
configuration.   Specifically:

  - the WORDS_BIGENDIAN preprocessor macro is used in libdecnumber code to
    determines endianness.  It is derived from the existing QEMU macro
    HOST_WORDS_BIGENDIAN which is defined in config-host.h.

  - the DECPUN macro determines the number of decimal digits (aka declets) per
    unit (byte).  This is 3 for PowerPC DFP.

Signed-off-by: Tom Musta <tommusta@gmail.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
include/libdecnumber/dconfig.h