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