Mercurial > libavcodec.hg
comparison x86/dsputil_mmx.c @ 9339:5e020cbd1599 libavcodec
Use DECLARE_ASM_CONST for non-global ff_vector128 constant used via MANGLE
author | reimar |
---|---|
date | Fri, 03 Apr 2009 14:01:24 +0000 |
parents | a0d54042ea37 |
children | e9d9f8094e7f |
comparison
equal
deleted
inserted
replaced
9338:41b37c9c4ff7 | 9339:5e020cbd1599 |
---|---|
270 "movq %%mm6, (%0, %2) \n\t" | 270 "movq %%mm6, (%0, %2) \n\t" |
271 ::"r" (pix), "r" ((x86_reg)line_size), "r" ((x86_reg)line_size*3), "r"(p) | 271 ::"r" (pix), "r" ((x86_reg)line_size), "r" ((x86_reg)line_size*3), "r"(p) |
272 :"memory"); | 272 :"memory"); |
273 } | 273 } |
274 | 274 |
275 DECLARE_ALIGNED_8(const unsigned char, ff_vector128[8]) = | 275 DECLARE_ASM_CONST(8, uint8_t, ff_vector128[8]) = |
276 { 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80 }; | 276 { 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80 }; |
277 | 277 |
278 #define put_signed_pixels_clamped_mmx_half(off) \ | 278 #define put_signed_pixels_clamped_mmx_half(off) \ |
279 "movq "#off"(%2), %%mm1 \n\t"\ | 279 "movq "#off"(%2), %%mm1 \n\t"\ |
280 "movq 16+"#off"(%2), %%mm2 \n\t"\ | 280 "movq 16+"#off"(%2), %%mm2 \n\t"\ |