mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-trx.git
synced 2025-11-02 13:13:17 +00:00
Remove the paragraph about writing to the Free Software Foundation's mailing address. The FSF has changed addresses in the past, and may do so again. In 2021 this is not useful, let's rather have a bit less boilerplate at the start of source files. Change-Id: I8ba71ab9ccde4ba25151ecbeb2a323f706b57d43
41 lines
1.2 KiB
ArmAsm
41 lines
1.2 KiB
ArmAsm
/*
|
|
* NEON complex multiplication
|
|
* Copyright (C) 2012,2013 Thomas Tsou <tom@tsou.cc>
|
|
*
|
|
* SPDX-License-Identifier: LGPL-2.1+
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* 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.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* 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.
|
|
*/
|
|
|
|
.syntax unified
|
|
.text
|
|
.align 2
|
|
.global neon_cmplx_mul_4n
|
|
.type neon_cmplx_mul_4n, %function
|
|
neon_cmplx_mul_4n:
|
|
vpush {q4-q7}
|
|
.loop_mul:
|
|
vld2.32 {q0-q1}, [r1]!
|
|
vld2.32 {q2-q3}, [r2]!
|
|
vmul.f32 q4, q0, q2
|
|
vmul.f32 q5, q1, q3
|
|
vmul.f32 q6, q0, q3
|
|
vmul.f32 q7, q2, q1
|
|
vsub.f32 q8, q4, q5
|
|
vadd.f32 q9, q6, q7
|
|
vst2.32 {q8-q9}, [r0]!
|
|
subs r3, #1
|
|
bne .loop_mul
|
|
vpop {q4-q7}
|
|
bx lr
|
|
.size neon_cmplx_mul_4n, .-neon_cmplx_mul_4n
|
|
.section .note.GNU-stack,"",%progbits
|