amd64 arch and sse optimization
Felipe Sateler
fsateler at debian.org
Mon Feb 3 13:41:08 UTC 2014
I have some packages that also add (on amd64 and i386) -mtune=generic.
This causes the compiler to optimize for the most common cpus, but
still be compatible with older ones.
Other optimizations that I have added on all archs are -ffast-math and
-ftree-vectorize.
On Sun, Feb 2, 2014 at 10:31 AM, Jaromír Mikeš <mira.mikes at gmail.com> wrote:
> Hi all,
>
> I would like to add sse optimization for amd64 arch in some packages (mostly
> LV2 nad LADSPA plugins).
> I found that something like this works fine for me:
>
> ifeq ($(DEB_HOST_ARCH_CPU),amd64)
> CFLAGS += -msse -msse2 -mfpmath=sse
> endif
>
> Is it right way to use CFLAGS to add optimization flags?
> Which flags could be safely added for amd64?
>
> best regards
>
> mira
>
> _______________________________________________
> pkg-multimedia-maintainers mailing list
> pkg-multimedia-maintainers at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers
--
Saludos,
Felipe Sateler
More information about the pkg-multimedia-maintainers
mailing list