[Digikam-devel] Customizing compiler options for a plugin
Peter Heckert
lists at hphsite.de
Sat Apr 29 17:33:33 BST 2006
Hi,
If I wanted to set the -ffast-math compiler option for the
Noisereduction plugin,
how should I do this?
Reason:
Converting float to int is rather expensive at least for the i386 family
of CPU's,
because the default rounding mode for the FPU must be temporarily changed.
In addition this will delete the pipeline in FPU.
This affects all (int) typecasts and all floor() or ceil() invocations.
There are other optimizations possible (e.g. do not expand float
constants to double)
Peter
More information about the Digikam-devel
mailing list