comparison libswscale/ppc/yuv2rgb_altivec.c @ 29632:75dd81db0184

Remove ; after while(0) in macros.
author ramiro
date Sat, 12 Sep 2009 20:10:22 +0000
parents c080f1f5c07e
children 4d50825554ee
comparison
equal deleted inserted replaced
29631:260afac0b87f 29632:75dd81db0184
165 __typeof__(x0) _0,_1,_2; \ 165 __typeof__(x0) _0,_1,_2; \
166 vec_merge3 (x0,x1,x2,_0,_1,_2); \ 166 vec_merge3 (x0,x1,x2,_0,_1,_2); \
167 vec_st (_0, 0, ptr++); \ 167 vec_st (_0, 0, ptr++); \
168 vec_st (_1, 0, ptr++); \ 168 vec_st (_1, 0, ptr++); \
169 vec_st (_2, 0, ptr++); \ 169 vec_st (_2, 0, ptr++); \
170 } while (0); 170 } while (0)
171 171
172 #define vec_mstrgb24(x0,x1,x2,ptr) \ 172 #define vec_mstrgb24(x0,x1,x2,ptr) \
173 do { \ 173 do { \
174 __typeof__(x0) _0,_1,_2; \ 174 __typeof__(x0) _0,_1,_2; \
175 vec_merge3 (x2,x1,x0,_0,_1,_2); \ 175 vec_merge3 (x2,x1,x0,_0,_1,_2); \
176 vec_st (_0, 0, ptr++); \ 176 vec_st (_0, 0, ptr++); \
177 vec_st (_1, 0, ptr++); \ 177 vec_st (_1, 0, ptr++); \
178 vec_st (_2, 0, ptr++); \ 178 vec_st (_2, 0, ptr++); \
179 } while (0); 179 } while (0)
180 180
181 /* pack the pixels in rgb0 format 181 /* pack the pixels in rgb0 format
182 msb R 182 msb R
183 lsb 0 183 lsb 0
184 */ 184 */
196 _2 = (T)vec_mergeh ((vector unsigned short)_0,(vector unsigned short)_1); \ 196 _2 = (T)vec_mergeh ((vector unsigned short)_0,(vector unsigned short)_1); \
197 _3 = (T)vec_mergel ((vector unsigned short)_0,(vector unsigned short)_1); \ 197 _3 = (T)vec_mergel ((vector unsigned short)_0,(vector unsigned short)_1); \
198 vec_st (_2, 2*16, (T *)ptr); \ 198 vec_st (_2, 2*16, (T *)ptr); \
199 vec_st (_3, 3*16, (T *)ptr); \ 199 vec_st (_3, 3*16, (T *)ptr); \
200 ptr += 4; \ 200 ptr += 4; \
201 } while (0); 201 } while (0)
202 202
203 /* 203 /*
204 204
205 | 1 0 1.4021 | | Y | 205 | 1 0 1.4021 | | Y |
206 | 1 -0.3441 -0.7142 |x| Cb| 206 | 1 -0.3441 -0.7142 |x| Cb|