Mercurial > libavcodec.hg
comparison i386/dsputil_mmx_rnd.h @ 5083:ce36118abbbb libavcodec
rename attribute_unused to av_unused and moves its declaration to common.h
patch by Carl Eugen Hoyos cehoyos chez ag or at
original thread: [FFmpeg-devel] [PATCH] attribute_unused -> av_unused
date: 05/29/2007 01:23 PM
author | benoit |
---|---|
date | Wed, 30 May 2007 09:32:25 +0000 |
parents | 28ebdd244a07 |
children | 4dbe6578f811 |
comparison
equal
deleted
inserted
replaced
5082:176ac8353f48 | 5083:ce36118abbbb |
---|---|
55 :"+g"(h), "+S"(pixels), "+D"(block) | 55 :"+g"(h), "+S"(pixels), "+D"(block) |
56 :"r"((long)line_size) | 56 :"r"((long)line_size) |
57 :REG_a, "memory"); | 57 :REG_a, "memory"); |
58 } | 58 } |
59 | 59 |
60 static void attribute_unused DEF(put, pixels8_l2)(uint8_t *dst, uint8_t *src1, uint8_t *src2, int dstStride, int src1Stride, int h) | 60 static void av_unused DEF(put, pixels8_l2)(uint8_t *dst, uint8_t *src1, uint8_t *src2, int dstStride, int src1Stride, int h) |
61 { | 61 { |
62 MOVQ_BFE(mm6); | 62 MOVQ_BFE(mm6); |
63 __asm __volatile( | 63 __asm __volatile( |
64 "testl $1, %0 \n\t" | 64 "testl $1, %0 \n\t" |
65 " jz 1f \n\t" | 65 " jz 1f \n\t" |
151 :"+g"(h), "+S"(pixels), "+D"(block) | 151 :"+g"(h), "+S"(pixels), "+D"(block) |
152 :"r"((long)line_size) | 152 :"r"((long)line_size) |
153 :REG_a, "memory"); | 153 :REG_a, "memory"); |
154 } | 154 } |
155 | 155 |
156 static void attribute_unused DEF(put, pixels16_l2)(uint8_t *dst, uint8_t *src1, uint8_t *src2, int dstStride, int src1Stride, int h) | 156 static void av_unused DEF(put, pixels16_l2)(uint8_t *dst, uint8_t *src1, uint8_t *src2, int dstStride, int src1Stride, int h) |
157 { | 157 { |
158 MOVQ_BFE(mm6); | 158 MOVQ_BFE(mm6); |
159 __asm __volatile( | 159 __asm __volatile( |
160 "testl $1, %0 \n\t" | 160 "testl $1, %0 \n\t" |
161 " jz 1f \n\t" | 161 " jz 1f \n\t" |
296 :"D"(block), "r"((long)line_size) | 296 :"D"(block), "r"((long)line_size) |
297 :REG_a, "memory"); | 297 :REG_a, "memory"); |
298 } | 298 } |
299 | 299 |
300 // avg_pixels | 300 // avg_pixels |
301 static void attribute_unused DEF(avg, pixels4)(uint8_t *block, const uint8_t *pixels, int line_size, int h) | 301 static void av_unused DEF(avg, pixels4)(uint8_t *block, const uint8_t *pixels, int line_size, int h) |
302 { | 302 { |
303 MOVQ_BFE(mm6); | 303 MOVQ_BFE(mm6); |
304 JUMPALIGN(); | 304 JUMPALIGN(); |
305 do { | 305 do { |
306 __asm __volatile( | 306 __asm __volatile( |
378 pixels += line_size; | 378 pixels += line_size; |
379 block += line_size; | 379 block += line_size; |
380 } while (--h); | 380 } while (--h); |
381 } | 381 } |
382 | 382 |
383 static attribute_unused void DEF(avg, pixels8_l2)(uint8_t *dst, uint8_t *src1, uint8_t *src2, int dstStride, int src1Stride, int h) | 383 static av_unused void DEF(avg, pixels8_l2)(uint8_t *dst, uint8_t *src1, uint8_t *src2, int dstStride, int src1Stride, int h) |
384 { | 384 { |
385 MOVQ_BFE(mm6); | 385 MOVQ_BFE(mm6); |
386 JUMPALIGN(); | 386 JUMPALIGN(); |
387 do { | 387 do { |
388 __asm __volatile( | 388 __asm __volatile( |
425 pixels += line_size; | 425 pixels += line_size; |
426 block += line_size; | 426 block += line_size; |
427 } while (--h); | 427 } while (--h); |
428 } | 428 } |
429 | 429 |
430 static attribute_unused void DEF(avg, pixels16_l2)(uint8_t *dst, uint8_t *src1, uint8_t *src2, int dstStride, int src1Stride, int h) | 430 static av_unused void DEF(avg, pixels16_l2)(uint8_t *dst, uint8_t *src1, uint8_t *src2, int dstStride, int src1Stride, int h) |
431 { | 431 { |
432 MOVQ_BFE(mm6); | 432 MOVQ_BFE(mm6); |
433 JUMPALIGN(); | 433 JUMPALIGN(); |
434 do { | 434 do { |
435 __asm __volatile( | 435 __asm __volatile( |