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 mangle(SYMBOL): | 8 mangle(SYMBOL): |
9 %assign stack_offset 0 | 9 %assign stack_offset 0 |
10 | 10 |
11 extern mangle(kCoefficientsRgbY) | 11 extern mangle(kCoefficientsRgbY) |
12 | 12 |
13 ; Parameters are in the following order: | 13 ; Parameters are in the following order: |
14 ; 1. Y plane | 14 ; 1. Y plane |
15 ; 2. U plane | 15 ; 2. U plane |
(...skipping 14 matching lines...) Expand all Loading... |
30 PUSH R1q ; Width | 30 PUSH R1q ; Width |
31 %endif | 31 %endif |
32 PUSH R2q ; Source dx | 32 PUSH R2q ; Source dx |
33 | 33 |
34 %define SOURCE_DX WORD_SIZE [rsp] | 34 %define SOURCE_DX WORD_SIZE [rsp] |
35 | 35 |
36 ; PIC code. | 36 ; PIC code. |
37 %ifdef PIC | 37 %ifdef PIC |
38 LOAD_SYM R1q, mangle(kCoefficientsRgbY) | 38 LOAD_SYM R1q, mangle(kCoefficientsRgbY) |
39 %define WIDTH WORD_SIZE [rsp + gprsize] | 39 %define WIDTH WORD_SIZE [rsp + gprsize] |
40 %define TABLE R1q | 40 %define TABLE R1q |
41 %define Xq R2q | 41 %define Xq R2q |
42 | 42 |
43 ; Non-PIC code. | 43 ; Non-PIC code. |
44 %else | 44 %else |
45 %define WIDTH R1q | 45 %define WIDTH R1q |
46 %define TABLE mangle(kCoefficientsRgbY) | 46 %define TABLE mangle(kCoefficientsRgbY) |
47 %define Xq R2q | 47 %define Xq R2q |
48 %endif | 48 %endif |
49 | 49 |
50 ; Set Xq index to 0. | 50 ; Set Xq index to 0. |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 packuswb mm1, mm1 | 106 packuswb mm1, mm1 |
107 movd DWORD [ARGBq], mm1 | 107 movd DWORD [ARGBq], mm1 |
108 | 108 |
109 .scaledone: | 109 .scaledone: |
110 %ifdef PIC | 110 %ifdef PIC |
111 ADD rsp, 2 * gprsize | 111 ADD rsp, 2 * gprsize |
112 %else | 112 %else |
113 ADD rsp, gprsize | 113 ADD rsp, gprsize |
114 %endif | 114 %endif |
115 RET | 115 RET |
OLD | NEW |