Lines 37-50
function ff_ac3_bit_alloc_calc_bap_armv6
Link Here
|
37 |
ldrb r10, [r4], #1 |
37 |
ldrb r10, [r4], #1 |
38 |
1: |
38 |
1: |
39 |
ldrsh r9, [r0], #2 @ mask[band] |
39 |
ldrsh r9, [r0], #2 @ mask[band] |
40 |
movw r8, #0x1fe0 |
40 |
mov r8, #0xff0 |
41 |
sub r9, r9, r12 @ - snr_offset |
41 |
sub r9, r9, r12 @ - snr_offset |
42 |
mov r11, r10 |
42 |
mov r11, r10 |
43 |
ldrb r10, [r4], #1 @ band_start_tab[band++] |
43 |
ldrb r10, [r4], #1 @ band_start_tab[band++] |
44 |
subs r9, r9, r5 @ - floor |
44 |
subs r9, r9, r5 @ - floor |
|
|
45 |
it lt |
45 |
movlt r9, #0 |
46 |
movlt r9, #0 |
46 |
cmp r10, r3 @ - end |
47 |
cmp r10, r3 @ - end |
47 |
and r9, r9, r8 @ & 0x1fe0 |
48 |
and r9, r9, r8, lsl #1 @ & 0x1fe0 |
|
|
49 |
ite gt |
48 |
subgt r8, r3, r11 |
50 |
subgt r8, r3, r11 |
49 |
suble r8, r10, r11 |
51 |
suble r8, r10, r11 |
50 |
add r9, r9, r5 @ + floor => m |
52 |
add r9, r9, r5 @ + floor => m |