diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2015-06-07 20:16:43 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2015-06-07 20:16:43 +0000 |
commit | 9195e4805ffa273d70b1acbb24b2ed0d7aec9587 (patch) | |
tree | 6531bfa85c4859c683dfe98a4c4ad64abd632a9b /src | |
parent | fc2548593f90df6f18de3d0e80c3804da98a0e9d (diff) |
only use SSE-variants if signal vector is big enough
for loop unrolling
svn path=/trunk/externals/zexy/; revision=17477
Diffstat (limited to 'src')
-rw-r--r-- | src/abs~.c | 1 | ||||
-rw-r--r-- | src/sgn~.c | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -119,6 +119,7 @@ static void sigABS_dsp(t_abs *x, t_signal **sp) { #ifdef __SSE__ if( + (!(sp[0]->s_n & 15)) && ZEXY_TYPE_EQUAL(t_sample, float) && zexy_testSSE(sigABS_perform, sigABS_performSSE, @@ -115,6 +115,7 @@ static void sgnTilde_dsp(t_sgnTilde *x, t_signal **sp) zexy_testSSE(sgnTilde_perform, sgnTilde_performSSE, 1,1) + && !(sp[0]->s_n & 7) ) { dsp_add(sgnTilde_performSSE, 3, sp[0]->s_vec, sp[1]->s_vec, sp[0]->s_n); |