target-ppc: Introduce DFP Post Processor Utilities
commit27722744e9fc81e437a5e55db8ec31ec99b31714
authorTom Musta <tommusta@gmail.com>
Mon, 21 Apr 2014 20:55:00 +0000 (21 15:55 -0500)
committerAlexander Graf <agraf@suse.de>
Mon, 16 Jun 2014 11:24:30 +0000 (16 13:24 +0200)
tree7860504b32c6d132f0eb76cf400e2338360f46b4
parent7b0c0d66e54868087b6db6a302aba030c0c5f2c3
target-ppc: Introduce DFP Post Processor Utilities

Add post-processing utilities to the PowerPC Decimal Floating Point
(DFP) helper code.  Post-processors are small routines that execute
after a preliminary DFP result is computed.  They are used, among other
things, to compute status bits.

This change defines a function type for post processors as well as a
generic routine to run a list (array) of post-processors.

Actual post-processor implementations will be added as needed by specific
DFP helpers in subsequent changes.

Some routines are annotated with the GCC unused attribute in order to
preserve build bisection.  The annotation will be removed in subsequent
patches.

Signed-off-by: Tom Musta <tommusta@gmail.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
target-ppc/dfp_helper.c