comparison ps2/dsputil_mmi.c @ 2979:bfabfdf9ce55 libavcodec

COSMETICS: tabs --> spaces, some prettyprinting
author diego
date Thu, 22 Dec 2005 01:10:11 +0000
parents ef2149182f1c
children 0b546eab515d
comparison
equal deleted inserted replaced
2978:403183bbb505 2979:bfabfdf9ce55
78 "add %0, %0, %2 \n\t" 78 "add %0, %0, %2 \n\t"
79 "ld $9, 0(%0) \n\t" 79 "ld $9, 0(%0) \n\t"
80 "pextlb $10, $0, $10 \n\t" 80 "pextlb $10, $0, $10 \n\t"
81 "sq $10, 80(%1) \n\t" 81 "sq $10, 80(%1) \n\t"
82 "pextlb $8, $0, $8 \n\t" 82 "pextlb $8, $0, $8 \n\t"
83 "sq $8, 96(%1) \n\t" 83 "sq $8, 96(%1) \n\t"
84 "pextlb $9, $0, $9 \n\t" 84 "pextlb $9, $0, $9 \n\t"
85 "sq $9, 112(%1) \n\t" 85 "sq $9, 112(%1) \n\t"
86 ".set pop \n\t" 86 ".set pop \n\t"
87 : "+r" (pixels) : "r" (block), "r" (line_size) : "$8", "$9", "$10", "memory" ); 87 : "+r" (pixels) : "r" (block), "r" (line_size) : "$8", "$9", "$10", "memory" );
88 } 88 }
110 static void put_pixels16_mmi(uint8_t *block, const uint8_t *pixels, int line_size, int h) 110 static void put_pixels16_mmi(uint8_t *block, const uint8_t *pixels, int line_size, int h)
111 { 111 {
112 asm volatile ( 112 asm volatile (
113 ".set push \n\t" 113 ".set push \n\t"
114 ".set mips3 \n\t" 114 ".set mips3 \n\t"
115 "1: \n\t" 115 "1: \n\t"
116 "ldr $8, 0(%1) \n\t" 116 "ldr $8, 0(%1) \n\t"
117 "add $11, %1, %3 \n\t" 117 "add $11, %1, %3 \n\t"
118 "ldl $8, 7(%1) \n\t" 118 "ldl $8, 7(%1) \n\t"
119 "add $10, %0, %3 \n\t" 119 "add $10, %0, %3 \n\t"
120 "ldr $9, 8(%1) \n\t" 120 "ldr $9, 8(%1) \n\t"
131 "pcpyld $12, $13, $12 \n\t" 131 "pcpyld $12, $13, $12 \n\t"
132 "sq $12, 0($10) \n\t" 132 "sq $12, 0($10) \n\t"
133 "bgtz %2, 1b \n\t" 133 "bgtz %2, 1b \n\t"
134 ".set pop \n\t" 134 ".set pop \n\t"
135 : "+r" (block), "+r" (pixels), "+r" (h) : "r" (line_size) 135 : "+r" (block), "+r" (pixels), "+r" (h) : "r" (line_size)
136 : "$8", "$9", "$10", "$11", "$12", "$13", "memory" ); 136 : "$8", "$9", "$10", "$11", "$12", "$13", "memory" );
137 } 137 }
138 138
139 139
140 void dsputil_init_mmi(DSPContext* c, AVCodecContext *avctx) 140 void dsputil_init_mmi(DSPContext* c, AVCodecContext *avctx)
141 { 141 {