This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] DFP internal support for FP exceptions


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




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]