2 * Copyright (c) 2011 Mans Rullgard <mans@mansr.com>
4 * This file is part of Libav.
6 * Libav 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.
11 * Libav 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.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with Libav; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23 function ff_ac3_max_msb_abs_int16_neon, export=1
26 1: vld1.16 {q1}, [r0,:128]!
28 vld1.16 {q3}, [r0,:128]!
42 function ff_ac3_exponent_min_neon, export=1
48 vld1.8 {q0}, [r0,:128]
51 2: vld1.8 {q1}, [r3,:128], r12
56 vst1.8 {q0}, [r0,:128]!
61 function ff_ac3_lshift_int16_neon, export=1
63 1: vld1.16 {q1}, [r0,:128]
65 vst1.16 {q1}, [r0,:128]!
71 function ff_ac3_rshift_int32_neon, export=1
74 1: vld1.32 {q1}, [r0,:128]
76 vst1.32 {q1}, [r0,:128]!
82 function ff_float_to_fixed24_neon, export=1
83 1: vld1.32 {q0-q1}, [r1,:128]!
84 vcvt.s32.f32 q0, q0, #24
85 vld1.32 {q2-q3}, [r1,:128]!
86 vcvt.s32.f32 q1, q1, #24
87 vcvt.s32.f32 q2, q2, #24
88 vst1.32 {q0-q1}, [r0,:128]!
89 vcvt.s32.f32 q3, q3, #24
90 vst1.32 {q2-q3}, [r0,:128]!
96 function ff_ac3_extract_exponents_neon, export=1
100 vld1.32 {q0}, [r1,:128]
109 vst1.32 {q0}, [r1,:128]!
110 vst1.32 {d6[0]}, [r0,:32]!