diff options
Diffstat (limited to 'apps/codecs/Tremor/asm_mcf5249.h')
-rw-r--r-- | apps/codecs/Tremor/asm_mcf5249.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/apps/codecs/Tremor/asm_mcf5249.h b/apps/codecs/Tremor/asm_mcf5249.h index 16878d73ee..4d7f92c089 100644 --- a/apps/codecs/Tremor/asm_mcf5249.h +++ b/apps/codecs/Tremor/asm_mcf5249.h | |||
@@ -132,10 +132,13 @@ void XNPROD31(ogg_int32_t a, ogg_int32_t b, | |||
132 | [t] "r" (_t), [v] "r" (_v) \ | 132 | [t] "r" (_t), [v] "r" (_v) \ |
133 | : "cc"); | 133 | : "cc"); |
134 | 134 | ||
135 | #ifndef _V_VECT_OPS | ||
136 | #define _V_VECT_OPS | ||
137 | |||
135 | /* asm versions of vector operations for block.c, window.c */ | 138 | /* asm versions of vector operations for block.c, window.c */ |
136 | /* assumes MAC is initialized & accumulators cleared */ | 139 | /* assumes MAC is initialized & accumulators cleared */ |
137 | static inline | 140 | static inline |
138 | void mcf5249_vect_add(ogg_int32_t *x, ogg_int32_t *y, int n) | 141 | void vect_add(ogg_int32_t *x, ogg_int32_t *y, int n) |
139 | { | 142 | { |
140 | /* align to 16 bytes */ | 143 | /* align to 16 bytes */ |
141 | while(n>0 && (int)x&16) { | 144 | while(n>0 && (int)x&16) { |
@@ -169,7 +172,7 @@ void mcf5249_vect_add(ogg_int32_t *x, ogg_int32_t *y, int n) | |||
169 | } | 172 | } |
170 | 173 | ||
171 | static inline | 174 | static inline |
172 | void mcf5249_vect_copy(ogg_int32_t *x, ogg_int32_t *y, int n) | 175 | void vect_copy(ogg_int32_t *x, ogg_int32_t *y, int n) |
173 | { | 176 | { |
174 | /* align to 16 bytes */ | 177 | /* align to 16 bytes */ |
175 | while(n>0 && (int)x&16) { | 178 | while(n>0 && (int)x&16) { |
@@ -196,7 +199,7 @@ void mcf5249_vect_copy(ogg_int32_t *x, ogg_int32_t *y, int n) | |||
196 | 199 | ||
197 | 200 | ||
198 | static inline | 201 | static inline |
199 | void mcf5249_vect_mult_fw(ogg_int32_t *data, LOOKUP_T *window, int n) | 202 | void vect_mult_fw(ogg_int32_t *data, LOOKUP_T *window, int n) |
200 | { | 203 | { |
201 | /* ensure data is aligned to 16-bytes */ | 204 | /* ensure data is aligned to 16-bytes */ |
202 | while(n>0 && (int)data%16) { | 205 | while(n>0 && (int)data%16) { |
@@ -250,7 +253,7 @@ void mcf5249_vect_mult_fw(ogg_int32_t *data, LOOKUP_T *window, int n) | |||
250 | } | 253 | } |
251 | 254 | ||
252 | static inline | 255 | static inline |
253 | void mcf5249_vect_mult_bw(ogg_int32_t *data, LOOKUP_T *window, int n) | 256 | void vect_mult_bw(ogg_int32_t *data, LOOKUP_T *window, int n) |
254 | { | 257 | { |
255 | /* ensure at least data is aligned to 16-bytes */ | 258 | /* ensure at least data is aligned to 16-bytes */ |
256 | while(n>0 && (int)data%16) { | 259 | while(n>0 && (int)data%16) { |
@@ -338,6 +341,8 @@ void mcf5249_vect_zero(ogg_int32_t *ptr, int n) | |||
338 | 341 | ||
339 | #endif | 342 | #endif |
340 | 343 | ||
344 | #endif | ||
345 | |||
341 | #ifndef _V_CLIP_MATH | 346 | #ifndef _V_CLIP_MATH |
342 | #define _V_CLIP_MATH | 347 | #define _V_CLIP_MATH |
343 | 348 | ||