From 82d00972c91a44a428bd08412ca3039e101c0e40 Mon Sep 17 00:00:00 2001 From: Siarhei Siamashka Date: Thu, 15 Jan 2009 19:45:36 +0200 Subject: SBC arrays and constant tables aligned at 16 byte boundary for SIMD Most SIMD instruction sets benefit from data being naturally aligned. And even if it is not strictly required, performance is usually better with the aligned data. ARM NEON and SSE2 have different instruction variants for aligned/unaligned memory accesses. --- sbc/sbc_primitives.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sbc/sbc_primitives.h') diff --git a/sbc/sbc_primitives.h b/sbc/sbc_primitives.h index ca1ec277..a8b3df6e 100644 --- a/sbc/sbc_primitives.h +++ b/sbc/sbc_primitives.h @@ -31,7 +31,7 @@ struct sbc_encoder_state { int subbands; int position[2]; - int16_t X[2][256]; + int16_t SBC_ALIGNED X[2][256]; /* Polyphase analysis filter for 4 subbands configuration, it handles 4 blocks at once */ void (*sbc_analyze_4b_4s)(int16_t *pcm, int16_t *x, -- cgit