comparison ppc/h264_template_altivec.c @ 5019:41cabe79ba25 libavcodec

use macro Use DECLARE_ALIGNED_16 to align stack-allocated variables instead of compiler-dependent __attribute__((aligned(16))) Origiginal thread: Date: May 17, 2007 12:30 AM Subject: [PATCH] Use DECLARE_ALIGNED_16 in libavcodec/ppc/
author gpoirier
date Thu, 17 May 2007 14:14:53 +0000
parents c8c591fe26f8
children cd266411b11a
comparison
equal deleted inserted replaced
5018:06adf4be28f4 5019:41cabe79ba25
19 */ 19 */
20 20
21 /* this code assume that stride % 16 == 0 */ 21 /* this code assume that stride % 16 == 0 */
22 void PREFIX_h264_chroma_mc8_altivec(uint8_t * dst, uint8_t * src, int stride, int h, int x, int y) { 22 void PREFIX_h264_chroma_mc8_altivec(uint8_t * dst, uint8_t * src, int stride, int h, int x, int y) {
23 POWERPC_PERF_DECLARE(PREFIX_h264_chroma_mc8_num, 1); 23 POWERPC_PERF_DECLARE(PREFIX_h264_chroma_mc8_num, 1);
24 signed int ABCD[4] __attribute__((aligned(16))) = 24 DECLARE_ALIGNED_16(signed int, ABCD[4]) =
25 {((8 - x) * (8 - y)), 25 {((8 - x) * (8 - y)),
26 ((x) * (8 - y)), 26 ((x) * (8 - y)),
27 ((8 - x) * (y)), 27 ((8 - x) * (y)),
28 ((x) * (y))}; 28 ((x) * (y))};
29 register int i; 29 register int i;