Re: [LAD] vectorization

From: Christian Schoenebeck <cuse@email-addr-hidden>
Date: Wed Apr 16 2008 - 15:01:50 EEST

Am Mittwoch, 16. April 2008 12:17:23 schrieb Jens M Andreasen:
> Then you will probably like this run of ./mixdown:
>
> Benchmarking mixdown (WITH coeff):
> pure C++ : 150 ms <-- pretty good, eh? ;-)
> ASM SSE : 140 ms
> GCC vector extensions : 150 ms
>
> This is with -ftree-vectorize added to your compile options.

Hey, nice! :-)

But that works only well for the inlined version. If the mixer C(++) function
is located in another object file and the compiler is forced to use real
function calls, then the C(++) result is still worse than the gcc vector
version, even with "-ftree-vectorize":

Benchmarking mixdown (no coeff):
pure C++ : 690 ms
ASM SSE : 210 ms
GCC vector extensions : 190 ms

Benchmarking mixdown (WITH coeff):
pure C++ : 1120 ms
ASM SSE : 320 ms
GCC vector extensions : 300 ms

CU
Christian
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-dev
Received on Wed Apr 16 16:15:08 2008

This archive was generated by hypermail 2.1.8 : Wed Apr 16 2008 - 16:15:08 EEST