aboutsummaryrefslogtreecommitdiff
path: root/src/sgn~.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sgn~.c')
-rw-r--r--src/sgn~.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sgn~.c b/src/sgn~.c
index 2421b69..5341694 100644
--- a/src/sgn~.c
+++ b/src/sgn~.c
@@ -111,11 +111,13 @@ static void sgnTilde_dsp(t_sgnTilde *x, t_signal **sp)
{
#ifdef __SSE__
if(
+ Z_SIMD_CHKBLOCKSIZE(sp[0]->s_n) &&
+ Z_SIMD_CHKALIGN(sp[0]->s_vec) &&
+ Z_SIMD_CHKALIGN(sp[1]->s_vec) &&
ZEXY_TYPE_EQUAL(t_sample, float) && /* currently SSE2 code is only for float (not for double) */
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);