comparison postproc/swscale_altivec_template.c @ 12532:79a2af950cf7

small linux/altivec compile fix in postproc/ by (Romain Dolbeau <dolbeau at irisa dot fr>)
author michael
date Fri, 04 Jun 2004 10:00:36 +0000
parents 2ef24558b732
children 931eee818c52
comparison
equal deleted inserted replaced
12531:834e7844ab3b 12532:79a2af950cf7
19 along with this program; if not, write to the Free Software 19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 20 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 */ 21 */
22 22
23 #ifdef CONFIG_DARWIN 23 #ifdef CONFIG_DARWIN
24 #define AVV(x...) (x)
25 #else
26 #define AVV(x...) {x}
27 #endif
28
24 static const vector signed int vzero = 29 static const vector signed int vzero =
25 (vector signed int)(0, 0, 0, 0); 30 (const vector signed int)AVV(0, 0, 0, 0);
26 static const vector unsigned int altivec_vectorShiftInt19 = 31 static const vector unsigned int altivec_vectorShiftInt19 =
27 (vector unsigned int)(19, 19, 19, 19); 32 (const vector unsigned int)AVV(19, 19, 19, 19);
28 #else
29 static const vector signed int vzero =
30 (vector signed int){0,0,0,0};
31 static const vector unsigned int altivec_vectorShiftInt19 =
32 (vector unsigned int){19, 19, 19, 19};
33
34 #endif
35 33
36 static inline void 34 static inline void
37 altivec_packIntArrayToCharArray(int *val, uint8_t* dest, int dstW) { 35 altivec_packIntArrayToCharArray(int *val, uint8_t* dest, int dstW) {
38 register int i; 36 register int i;
39 if ((unsigned long)dest % 16) { 37 if ((unsigned long)dest % 16) {