Imported Debian version 2.5.3~trusty1
[deb_ffmpeg.git] / ffmpeg / libavcodec / arm / neon.S
CommitLineData
2ba45a60
DM
1/*
2 * Copyright (c) 2008 Mans Rullgard <mans@mansr.com>
3 *
4 * This file is part of FFmpeg.
5 *
6 * FFmpeg is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * FFmpeg is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with FFmpeg; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20
21.macro transpose_8x8 r0, r1, r2, r3, r4, r5, r6, r7
22 vtrn.32 \r0, \r4
23 vtrn.32 \r1, \r5
24 vtrn.32 \r2, \r6
25 vtrn.32 \r3, \r7
26 vtrn.16 \r0, \r2
27 vtrn.16 \r1, \r3
28 vtrn.16 \r4, \r6
29 vtrn.16 \r5, \r7
30 vtrn.8 \r0, \r1
31 vtrn.8 \r2, \r3
32 vtrn.8 \r4, \r5
33 vtrn.8 \r6, \r7
34.endm
35
36.macro transpose_4x4 r0, r1, r2, r3
37 vtrn.16 \r0, \r2
38 vtrn.16 \r1, \r3
39 vtrn.8 \r0, \r1
40 vtrn.8 \r2, \r3
41.endm
42
43.macro swap4 r0, r1, r2, r3, r4, r5, r6, r7
44 vswp \r0, \r4
45 vswp \r1, \r5
46 vswp \r2, \r6
47 vswp \r3, \r7
48.endm
49
50.macro transpose16_4x4 r0, r1, r2, r3, r4, r5, r6, r7
51 vtrn.32 \r0, \r2
52 vtrn.32 \r1, \r3
53 vtrn.32 \r4, \r6
54 vtrn.32 \r5, \r7
55 vtrn.16 \r0, \r1
56 vtrn.16 \r2, \r3
57 vtrn.16 \r4, \r5
58 vtrn.16 \r6, \r7
59.endm