[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Puzzling behaviour of `isnan' with -ffast-math
From: |
Lionel B |
Subject: |
Re: Puzzling behaviour of `isnan' with -ffast-math |
Date: |
Thu, 3 Jul 2008 15:21:35 +0000 (UTC) |
User-agent: |
Pan/0.132 (Waxed in Black) |
On Thu, 03 Jul 2008 15:18:38 +0200, Bernd Strieder wrote:
> Hello,
>
> Lionel B wrote:
>
>> Is this just because all bets are off with -ffast-math (i.e. undefined
>> behaviour) or is there a problem here?
>
> See the docs (info pages):
>
> `-ffinite-math-only'
> Allow optimizations for floating-point arithmetic that assume that
> arguments and results are not NaNs or +-Infs.
>
> `-ffast-math'
> Sets `-fno-math-errno', `-funsafe-math-optimizations',
> `-ffinite-math-only', `-fno-rounding-math', `-fno-signaling-nans'
> and `-fcx-limited-range'.
>
Right, should have RTFM.
Thanks,
--
Lionel B