| ; Copyright (c) 2016, Alliance for Open Media. All rights reserved |
| ; This source code is subject to the terms of the BSD 2 Clause License and |
| ; the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License |
| ; was not distributed with this source code in the LICENSE file, you can |
| ; obtain it at www.aomedia.org/license/software. If the Alliance for Open |
| ; Media Patent License 1.0 was not distributed with this source code in the |
| ; PATENTS file, you can obtain it at www.aomedia.org/license/patent. |
| %define private_prefix av1 |
| %include "third_party/x86inc/x86inc.asm" |
| punpcklwd m0, m1 ; 00 10 01 11 02 12 03 13 |
| punpcklwd m2, m3 ; 20 30 21 31 22 32 23 33 |
| punpckldq m0, m2 ; 00 10 20 30 01 11 21 31 |
| punpckhdq m1, m2 ; 02 12 22 32 03 13 23 33 |
| cglobal fwht4x4, 3, 4, 8, input, output, stride |
| lea r3q, [inputq + strideq*4] |
| movq m1, [inputq + strideq*2] ;b1 |
| movq m3, [r3q + strideq*2] ;d1 |