RSS/Atom feed Twitter
Site is read-only, email is disabled

Is there a reason why -ffast-math is not included in the CFLAGS?

This discussion is connected to the gegl-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

2 of 2 messages available
Toggle history

Please log in to manage your subscriptions.

Is there a reason why -ffast-math is not included in the CFLAGS? Nicolas Robidoux 16 Sep 23:09
  Is there a reason why -ffast-math is not included in the CFLAGS? Øyvind Kolås 17 Sep 00:47
Nicolas Robidoux
2008-09-16 23:09:31 UTC (over 16 years ago)

Is there a reason why -ffast-math is not included in the CFLAGS?

At least on my machine (recent Intel Ubuntu laptop), it makes a small, but noticeable, difference.

Why not include it? I doubt very much that any of us is doing something which depends too closely on exactly how floating point is done. I certainly trust that the samplers will not be affected (maybe nearest neighbour, but nitpicking about a discontinuous method...).

In the gegl/gegl/buffer Makefile, for example:

CFLAGS = -g -DGEGL_ENABLE_DEBUG -g -O2 -Wall -Wdeclaration-after-statement -Wmissing-prototypes -Wmissing-declarations -Winit-self -Wpointer-arith -Wold-style-definition -mmmx -msse

Nicolas Robidoux Laurentian University/Universite Laurentienne

Øyvind Kolås
2008-09-17 00:47:56 UTC (over 16 years ago)

Is there a reason why -ffast-math is not included in the CFLAGS?

On Tue, Sep 16, 2008 at 10:09 PM, Nicolas Robidoux wrote:

At least on my machine (recent Intel Ubuntu laptop), it makes a small, but noticeable, difference.

Why not include it? I doubt very much that any of us is doing something which depends too closely on exactly how floating point is done. I certainly trust that the samplers will not be affected (maybe nearest neighbour, but nitpicking about a discontinuous method...).

In the gegl/gegl/buffer Makefile, for example:

CFLAGS = -g -DGEGL_ENABLE_DEBUG -g -O2 -Wall -Wdeclaration-after-statement -Wmissing-prototypes -Wmissing-declarations -Winit-self -Wpointer-arith -Wold-style-definition -mmmx -msse

It probably doesn't harm, though I do not know in which circumstances it would matter either. If it doesn't cause any problems it could probably be added to the
build system.

/Øyvind K.
--
«The future is already here. It's just not very evenly distributed» -- William Gibson
http://pippin.gimp.org/ http://ffii.org/