OLD | NEW |
1 ; Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 ; Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 ; Use of this source code is governed by a BSD-style license that can be | 2 ; Use of this source code is governed by a BSD-style license that can be |
3 ; found in the LICENSE file. | 3 ; found in the LICENSE file. |
4 | 4 |
5 global mangle(SYMBOL) PRIVATE | 5 EXPORT SYMBOL |
6 align function_align | 6 align function_align |
7 | 7 |
8 ; Non-PIC code is the fastest so use this if possible. | 8 ; Non-PIC code is the fastest so use this if possible. |
9 %ifndef PIC | 9 %ifndef PIC |
10 mangle(SYMBOL): | 10 mangle(SYMBOL): |
11 %assign stack_offset 0 | 11 %assign stack_offset 0 |
12 PROLOGUE 5, 7, 3, Y, U, V, ARGB, WIDTH, TEMPU, TEMPV | 12 PROLOGUE 5, 7, 3, Y, U, V, ARGB, WIDTH, TEMPU, TEMPV |
13 extern mangle(kCoefficientsRgbY) | 13 extern mangle(kCoefficientsRgbY) |
14 jmp .convertend | 14 jmp .convertend |
15 | 15 |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 movzx TEMPd, BYTE [Yq] | 110 movzx TEMPd, BYTE [Yq] |
111 movq mm1, [TABLEq + 8 * TEMPq] | 111 movq mm1, [TABLEq + 8 * TEMPq] |
112 paddsw mm1, mm0 | 112 paddsw mm1, mm0 |
113 psraw mm1, 6 | 113 psraw mm1, 6 |
114 packuswb mm1, mm1 | 114 packuswb mm1, mm1 |
115 movd [ARGBq], mm1 | 115 movd [ARGBq], mm1 |
116 | 116 |
117 .convertdone: | 117 .convertdone: |
118 RET | 118 RET |
119 %endif | 119 %endif |
OLD | NEW |