[PATCH] DFP internal support for FP exceptions

Andrew Pinski pinskia@gmail.com
Fri Dec 1 18:14:00 GMT 2006


On Fri, 2006-12-01 at 10:06 -0800, Janis Johnson wrote:
> This patch adds parameterized support to the decimal float runtime to
> detect conditions that require floating point exceptions to be raised
> and then raise them, if the appropriate support is defined.


> +  if (DFP_EXCEPTIONS_ENABLED && context.status != 0)

Hmm, I would also use __builtin_expect here as I hope exceptions are
rare.  Right now IIRC != 0 makes this branch a 50/50 change of going
either way so it would be useful to mark this branch with
__builtin_expect.

Thanks,
Andrew Pinski





More information about the Gcc-patches mailing list