This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] DFP internal support for FP exceptions
- From: Andrew Pinski <pinskia at gmail dot com>
- To: Janis Johnson <janis187 at us dot ibm dot com>
- Cc: gcc-patches at gcc dot gnu dot org, bje at au1 dot ibm dot com
- Date: Fri, 01 Dec 2006 10:14:07 -0800
- Subject: Re: [PATCH] DFP internal support for FP exceptions
- References: <20061201180642.GA4530@us.ibm.com>
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