help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Puzzling behaviour of `isnan' with -ffast-math


From: Bernd Strieder
Subject: Re: Puzzling behaviour of `isnan' with -ffast-math
Date: Thu, 03 Jul 2008 15:18:38 +0200
User-agent: KNode/0.10.4

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'.


Bernd Strieder



reply via email to

[Prev in Thread] Current Thread [Next in Thread]