comparison ppc/float_altivec.c @ 8537:93a3020d9636 libavcodec

Fix float_to_int16_altivec prototype to match float_to_int16's in dsputil.h (parameter 'len' is a long not an int). Patch by David Conrad % lessen42 A gmail P com %
author gpoirier
date Tue, 06 Jan 2009 12:51:35 +0000
parents d33b47d1f4c1
children 5a923bd4f5c6
comparison
equal deleted inserted replaced
8536:87450160a913 8537:93a3020d9636
182 vector signed int t0 = vec_cts(s0, 0); 182 vector signed int t0 = vec_cts(s0, 0);
183 vector signed int t1 = vec_cts(s1, 0); 183 vector signed int t1 = vec_cts(s1, 0);
184 return vec_packs(t0,t1); 184 return vec_packs(t0,t1);
185 } 185 }
186 186
187 static void float_to_int16_altivec(int16_t *dst, const float *src, int len) 187 static void float_to_int16_altivec(int16_t *dst, const float *src, long len)
188 { 188 {
189 int i; 189 int i;
190 vector signed short d0, d1, d; 190 vector signed short d0, d1, d;
191 vector unsigned char align; 191 vector unsigned char align;
192 if(((long)dst)&15) //FIXME 192 if(((long)dst)&15) //FIXME