2011-01-30 15:06:46 +00:00
|
|
|
/*
|
|
|
|
* ARM NEON optimised Format Conversion Utils
|
|
|
|
* Copyright (c) 2008 Mans Rullgard <mans@mansr.com>
|
|
|
|
*
|
2011-03-18 17:35:10 +00:00
|
|
|
* This file is part of Libav.
|
2011-01-30 15:06:46 +00:00
|
|
|
*
|
2011-03-18 17:35:10 +00:00
|
|
|
* Libav is free software; you can redistribute it and/or
|
2011-01-30 15:06:46 +00:00
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
2011-03-18 17:35:10 +00:00
|
|
|
* Libav is distributed in the hope that it will be useful,
|
2011-01-30 15:06:46 +00:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2011-03-18 17:35:10 +00:00
|
|
|
* License along with Libav; if not, write to the Free Software
|
2011-01-30 15:06:46 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "config.h"
|
2012-05-21 19:46:23 +00:00
|
|
|
#include "libavutil/arm/asm.S"
|
2011-01-30 15:06:46 +00:00
|
|
|
|
|
|
|
function ff_int32_to_float_fmul_scalar_neon, export=1
|
|
|
|
VFP vdup.32 q0, d0[0]
|
|
|
|
VFP len .req r2
|
|
|
|
NOVFP vdup.32 q0, r2
|
|
|
|
NOVFP len .req r3
|
|
|
|
|
|
|
|
vld1.32 {q1},[r1,:128]!
|
|
|
|
vcvt.f32.s32 q3, q1
|
|
|
|
vld1.32 {q2},[r1,:128]!
|
|
|
|
vcvt.f32.s32 q8, q2
|
|
|
|
1: subs len, len, #8
|
|
|
|
pld [r1, #16]
|
|
|
|
vmul.f32 q9, q3, q0
|
|
|
|
vmul.f32 q10, q8, q0
|
|
|
|
beq 2f
|
|
|
|
vld1.32 {q1},[r1,:128]!
|
|
|
|
vcvt.f32.s32 q3, q1
|
|
|
|
vld1.32 {q2},[r1,:128]!
|
|
|
|
vcvt.f32.s32 q8, q2
|
|
|
|
vst1.32 {q9}, [r0,:128]!
|
|
|
|
vst1.32 {q10},[r0,:128]!
|
|
|
|
b 1b
|
|
|
|
2: vst1.32 {q9}, [r0,:128]!
|
|
|
|
vst1.32 {q10},[r0,:128]!
|
|
|
|
bx lr
|
|
|
|
.unreq len
|
|
|
|
endfunc
|