[Digikam-devel] Customizing compiler options for a plugin
Gerhard Kulzer
gerhard at kulzer.net
Tue May 2 09:14:43 BST 2006
On Saturday 29 April 2006 18:33, Peter Heckert wrote:
> Hi,
>
> If I wanted to set the -ffast-math compiler option for the
> Noisereduction plugin,
> how should I do this?
for example like this:
make CXXFLAGS='-O2 -march=pentium4 -ffast-math -mmmx -msse2'
> 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
>
> _______________________________________________
> Digikam-devel mailing list
> Digikam-devel at kde.org
> https://mail.kde.org/mailman/listinfo/digikam-devel
More information about the Digikam-devel
mailing list