1@/****************************************************************************** 2@ * 3@ * Copyright (C) 2018 The Android Open Source Project 4@ * 5@ * Licensed under the Apache License, Version 2.0 (the "License"); 6@ * you may not use this file except in compliance with the License. 7@ * You may obtain a copy of the License at: 8@ * 9@ * http://www.apache.org/licenses/LICENSE-2.0 10@ * 11@ * Unless required by applicable law or agreed to in writing, software 12@ * distributed under the License is distributed on an "AS IS" BASIS, 13@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14@ * See the License for the specific language governing permissions and 15@ * limitations under the License. 16@ * 17@ ***************************************************************************** 18@ * Originally developed and contributed by Ittiam Systems Pvt. Ltd, Bangalore 19@*/ 20 21 22.text 23.p2align 2 24 .global ixheaacd_radix4bfly 25 26ixheaacd_radix4bfly: 27 28 STMFD sp!, {r4-r12, r14} 29 30 SUB sp, sp, #16 31 32 MOV r6, #6 33 MUL r7, r6, r3 34 MOV r4, r3 35 STR r7, [sp] 36 37 38 39 MOV r3, r3, lsl #1 40 41 STR r2, [sp, #8] 42 STR r4, [sp, #12] 43 44 45 ADD r2, r1, r3, lsl #2 46 ADD r0, r0, #8 47 48 49RADIX4_OUTLOOP: 50RADIX4_INLOOP: 51 52 53 LDR r6, [r1] 54 LDR r7, [r2] 55 LDR r8, [r2, r3, lsl #2] 56 LDR r9, [r2, r3, lsl #3] 57 58 ADD r10, r6, r8 59 SUB r11, r6, r8 60 ADD r12, r7, r9 61 SUB r14, r7, r9 62 63 ADD r6, r10, r12 64 SUB r7, r10, r12 65 STR r6, [r1], #4 66 67 LDR r8, [r1] 68 LDR r6, [r2, #4]! 69 LDR r9, [r2, r3, lsl #2]! 70 LDR r10, [r2, r3, lsl #2]! 71 72 ADD r12, r8, r9 73 SUB r8, r8, r9 74 ADD r9, r6, r10 75 SUB r6, r6, r10 76 77 ADD r10, r12, r9 78 STR r10, [r1], #4 79 SUB r12, r12, r9 80 81 ADD r9, r11, r6 82 SUB r10, r11, r6 83 ADD r11, r8, r14 84 LDR r5, [r0], #-4 85 SUB r6, r8, r14 86 87 SMULWB r14, r10, r5 88 SMULWT r8, r11, r5 89 90 SUBS r4, r4, #1 91 SUB r8, r8, r14 92 MOV r8, r8, lsl #1 93 STR r8, [r2], #-4 94 95 SMULWT r14, r10, r5 96 SMLAWB r8, r11, r5, r14 97 LDR r11, [r0], #-4 98 MOV r8, r8, lsl #1 99 STR r8, [r2], -r3, lsl #2 100 101 SMULWT r10, r7, r11 102 SMLAWB r8, r12, r11, r10 103 104 LDR r14, [r0], #20 105 MOV r5, r8, lsl #1 106 107 SMULWB r10, r7, r11 108 SMULWT r8, r12, r11 109 110 STR r5, [r2], #4 111 SUB r7, r8, r10 112 MOV r7, r7, lsl #1 113 114 SMULWB r11, r9, r14 115 SMULWT r12, r6, r14 116 117 STR r7, [r2], -r3, lsl #2 118 SUB r12, r12, r11 119 MOV r12, r12, lsl #1 120 121 SMULWT r10, r9, r14 122 SMLAWB r7, r6, r14, r10 123 124 STR r12, [r2], #-4 125 MOV r7, r7, lsl #1 126 STR r7, [r2], #8 127 128 129 BNE RADIX4_INLOOP 130 131 LDR r8, [sp] 132 LDR r4, [sp, #12] 133 LDR r6, [sp, #8] 134 135 136 SUB r0, r0, r8, lsl #1 137 ADD r1, r1, r8, lsl #2 138 ADD r2, r2, r8, lsl #2 139 140 SUBS r6, r6, #1 141 STR r6, [sp, #8] 142 BNE RADIX4_OUTLOOP 143 144 145 146 ADD sp, sp, #16 147 LDMFD sp!, {r4-r12, r15} 148 149 150