target-ppc: Introduce DFP Helper Utilities
commit7b0c0d66e54868087b6db6a302aba030c0c5f2c3
authorTom Musta <tommusta@gmail.com>
Mon, 21 Apr 2014 20:54:59 +0000 (21 15:54 -0500)
committerAlexander Graf <agraf@suse.de>
Mon, 16 Jun 2014 11:24:29 +0000 (16 13:24 +0200)
tree50cc9fe8dd1631617fe3f56a1537679605dda71c
parent275e35c6c1e2aa82eacb0ee13eb80fabeee66bbf
target-ppc: Introduce DFP Helper Utilities

Add a new file (dfp_helper.c) to the PowerPC implementation for Decimal Floating
Point (DFP) emulation.  This first version of the file declares a structure that
will be used by DFP helpers.  It also implements utilities that will initialize
such a structure for either a long (64 bit) DFP instruction or an extended (128
bit, aka "quad") instruction.

Some utility functions are annotated with the unused attribute in order to preserve
build bisection.

Signed-off-by: Tom Musta <tommusta@gmail.com>
[agraf: Add never reached assert on dfp_prepare_rounding_mode()]
Signed-off-by: Alexander Graf <agraf@suse.de>
target-ppc/Makefile.objs
target-ppc/dfp_helper.c [new file with mode: 0644]