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_postradixcompute2 25 26 27 ixheaacd_postradixcompute2: 28 29 STMFD sp!, {r4-r12, r14} 30 31 SUB sp, sp, #20 32 33 34 35 36 37 38 39 40 41 42 43 44 STR r0, [sp, #16] 45 46 47 ADD r4, r1, r3, lsl #1 48 MOV r3, r3, asr #4 49 STR r3, [sp, #4] 50 MOV r5, #1 51 STR r5, [sp] 52 53 POSTRADIX2_START: 54 55 LDR r14, [r2] 56 57 LDMIA r1!, {r5-r12} 58 ADD r0, r0, r14 59 60 ADD r14, r5, r7 61 SUB r5, r5, r7 62 63 ADD r7, r9, r11 64 SUB r9, r9, r11 65 66 ADD r11, r6, r8 67 SUB r6, r6, r8 68 69 ADD r8, r10, r12 70 SUB r10, r10, r12 71 72 STR r14, [r0], #4 73 STR r11, [r0], #32-4 74 75 STR r7, [r0], #4 76 STR r8, [r0], #(32+(32<<1))-4 77 78 STR r5, [r0], #4 79 STR r6, [r0], #32-4 80 81 STR r9, [r0], #4 82 STR r10, [r0], #0 83 84 LDR r0, [sp, #16] 85 86 LDR r14, [r2], #4 87 88 LDMIA r4!, {r5-r12} 89 90 ADD r0, r0, r14 91 92 93 ADD r0, r0, #8 94 95 ADD r14, r5, r7 96 SUB r5, r5, r7 97 98 ADD r7, r9, r11 99 SUB r9, r9, r11 100 101 ADD r11, r6, r8 102 SUB r6, r6, r8 103 104 ADD r8, r10, r12 105 SUB r10, r10, r12 106 107 STR r14, [r0], #4 108 STR r11, [r0], #32-4 109 110 STR r7, [r0], #4 111 STR r8, [r0], #(32+(32<<1))-4 112 113 STR r5, [r0], #4 114 STR r6, [r0], #32-4 115 116 117 STR r9, [r0], #4 118 STR r10, [r0], #0 119 120 SUBS r3, r3, #1 121 122 123 LDR r0, [sp, #16] 124 BGT POSTRADIX2_START 125 126 LDR r0, [sp, #16] 127 128 LDR r3, [sp, #4] 129 LDR r6, [sp] 130 131 ADD r1, r1, r3, lsl #5 132 ADD r4, r4, r3, lsl #5 133 134 SUBS r6, r6, #1 135 STR r6, [sp] 136 137 138 BPL POSTRADIX2_START 139 140 141 ADD sp, sp, #20 142 LDMFD sp!, {r4-r12, r15} 143 144 145