id stringlengths 22 129 | text stringlengths 60 19.5k | arch stringclasses 9
values | syntax stringclasses 5
values | kind stringclasses 4
values | repo stringclasses 32
values | path stringlengths 7 108 | license stringclasses 10
values | commit stringlengths 40 40 | source_host stringclasses 1
value | category stringclasses 15
values | source_url stringlengths 85 192 | line_start int64 1 5.48k | line_end int64 4 5.5k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
webmproject/libvpx:vpx_scale/symbian/gen_scalers_armv4.s:7 | @ * unsigned char *dest : Pointer to destination data.
@ * unsigned int dest_width : Stride of destination (NOT USED).
@ *
@ * OUTPUTS : None.
@ *
@ * RETU.req_s : void
@ *
@ * FUNCTION : Copies horizontal line of pixels from source to
@ * ... | arm64 | gas-like | handwritten | webmproject/libvpx | vpx_scale/symbian/gen_scalers_armv4.s | BSD-3-Clause | 0ea50ce9cb4b65eee6afa1d041fe8beb5abda667 | github | media | https://github.com/webmproject/libvpx/blob/0ea50ce9cb4b65eee6afa1d041fe8beb5abda667/vpx_scale/symbian/gen_scalers_armv4.s | 241 | 300 |
webmproject/libvpx:vpx_scale/symbian/gen_scalers_armv4.s:8 | strb r6, [dest], #1
add r7, r7, #128
mov r7, r7, lsr #8
strb r7, [dest], #1
subs srcw, srcw, #2
bne hl23_loop
ldrb r4, [src, #1] @ b
strb r5, [dest], #1
strb r4, [dest, #1]
mul r4, r12, r4 @ b * 171
mla r6, lr, r5, r... | arm64 | gas-like | handwritten | webmproject/libvpx | vpx_scale/symbian/gen_scalers_armv4.s | BSD-3-Clause | 0ea50ce9cb4b65eee6afa1d041fe8beb5abda667 | github | media | https://github.com/webmproject/libvpx/blob/0ea50ce9cb4b65eee6afa1d041fe8beb5abda667/vpx_scale/symbian/gen_scalers_armv4.s | 281 | 340 |
webmproject/libvpx:vpx_scale/symbian/gen_scalers_armv4.s:9 | @ *
@ ****************************************************************************/
@void vertical_band_2_3_scale_armv4
@(
@ r0 = UINT8 *dest
@ r1 = UINT32 dest_pitch
@ r2 = UINT32 dest_width
@)
_VerticalBand_2_3_Scale_ARMv4:
vertical_band_2_3_scale_armv4: @
stmdb sp!, {r4 - r8, lr}
ldr lr, =85... | arm64 | gas-like | handwritten | webmproject/libvpx | vpx_scale/symbian/gen_scalers_armv4.s | BSD-3-Clause | 0ea50ce9cb4b65eee6afa1d041fe8beb5abda667 | github | media | https://github.com/webmproject/libvpx/blob/0ea50ce9cb4b65eee6afa1d041fe8beb5abda667/vpx_scale/symbian/gen_scalers_armv4.s | 321 | 380 |
webmproject/libvpx:vpx_scale/symbian/gen_scalers_armv4.s:10 | @/****************************************************************************
@ *
@ * ROUTINE : vp8cx_horizontal_line_3_5_scale_c
@ *
@ * INPUTS : const unsigned char *source : Pointer to source data.
@ * unsigned int source_width : Stride of source.
@ * unsigned cha... | arm64 | gas-like | handwritten | webmproject/libvpx | vpx_scale/symbian/gen_scalers_armv4.s | BSD-3-Clause | 0ea50ce9cb4b65eee6afa1d041fe8beb5abda667 | github | media | https://github.com/webmproject/libvpx/blob/0ea50ce9cb4b65eee6afa1d041fe8beb5abda667/vpx_scale/symbian/gen_scalers_armv4.s | 361 | 420 |
webmproject/libvpx:vpx_scale/symbian/gen_scalers_armv4.s:11 | orr r6, r4, r8, lsl #16 @ b | a
ldrb r9, [src], #1 @ c = src[2]
mul r6, c102_154, r6 @ a * 102 + 154 * b
orr r5, r9, r8, lsl #16 @ b | c
mul r5, c51_205, r5 @ b * 205 + 51 * c
add r6, r6, #0x8000
ldrb r4, [src], #1 @ d = src[3... | arm64 | gas-like | handwritten | webmproject/libvpx | vpx_scale/symbian/gen_scalers_armv4.s | BSD-3-Clause | 0ea50ce9cb4b65eee6afa1d041fe8beb5abda667 | github | media | https://github.com/webmproject/libvpx/blob/0ea50ce9cb4b65eee6afa1d041fe8beb5abda667/vpx_scale/symbian/gen_scalers_armv4.s | 401 | 460 |
webmproject/libvpx:vpx_scale/symbian/gen_scalers_armv4.s:12 | add r6, r6, #0x8000
mov r6, r6, lsr #24
strb r6, [dest], #1
orr r7, r8, r9, lsl #16 @ c | b
mul r7, c51_205, r7 @ c * 205 + 154 * b
add r5, r5, #0x8000
mov r5, r5, lsr #24
strb r5, [dest], #1
add r7, r7, #0x8000
mov r7, r7, lsr #24
... | arm64 | gas-like | handwritten | webmproject/libvpx | vpx_scale/symbian/gen_scalers_armv4.s | BSD-3-Clause | 0ea50ce9cb4b65eee6afa1d041fe8beb5abda667 | github | media | https://github.com/webmproject/libvpx/blob/0ea50ce9cb4b65eee6afa1d041fe8beb5abda667/vpx_scale/symbian/gen_scalers_armv4.s | 441 | 500 |
webmproject/libvpx:vpx_scale/symbian/gen_scalers_armv4.s:13 | @ r0 = UINT8 *dest
@ r1 = UINT32 dest_pitch
@ r2 = UINT32 dest_width
@)
_VerticalBand_3_5_Scale_ARMv4:
vertical_band_3_5_scale_armv4: @
stmdb sp!, {r4 - r11, lr}
ldr c51_205, =0x3300cd
ldr c102_154, =0x66009a
vl35_loop:
mov r3, src
ldrb r4, [r3], r1 @ a = des ... | arm64 | gas-like | handwritten | webmproject/libvpx | vpx_scale/symbian/gen_scalers_armv4.s | BSD-3-Clause | 0ea50ce9cb4b65eee6afa1d041fe8beb5abda667 | github | media | https://github.com/webmproject/libvpx/blob/0ea50ce9cb4b65eee6afa1d041fe8beb5abda667/vpx_scale/symbian/gen_scalers_armv4.s | 481 | 540 |
webmproject/libvpx:vpx_scale/symbian/gen_scalers_armv4.s:14 | add r7, r7, #0x8000
subs r2, r2, #1
mov r7, r7, lsr #24
strb r7, [lr], r1
bne vl35_loop
ldmia sp!, {r4 - r11, pc}
@ @|vertical_band_3_5_scale_armv4|
@/****************************************************************************
@ *
@ * ROUTINE : horizontal_line_3... | arm64 | gas-like | handwritten | webmproject/libvpx | vpx_scale/symbian/gen_scalers_armv4.s | BSD-3-Clause | 0ea50ce9cb4b65eee6afa1d041fe8beb5abda667 | github | media | https://github.com/webmproject/libvpx/blob/0ea50ce9cb4b65eee6afa1d041fe8beb5abda667/vpx_scale/symbian/gen_scalers_armv4.s | 521 | 580 |
webmproject/libvpx:vpx_scale/symbian/gen_scalers_armv4.s:15 | horizontal_line_3_4_scale_armv4: @
stmdb sp!, {r4 - r11, lr}
ldr r10, =64
ldr r11, =192
mov r9, #128
ldrb r4, [src], #1 @ a = src[0]
hl34_loop:
ldrb r8, [src], #1 @ b = src[1]
ldrb r7, [src], #1 @ c = src[2]
strb r4, [dest], #1
... | arm64 | gas-like | handwritten | webmproject/libvpx | vpx_scale/symbian/gen_scalers_armv4.s | BSD-3-Clause | 0ea50ce9cb4b65eee6afa1d041fe8beb5abda667 | github | media | https://github.com/webmproject/libvpx/blob/0ea50ce9cb4b65eee6afa1d041fe8beb5abda667/vpx_scale/symbian/gen_scalers_armv4.s | 561 | 620 |
webmproject/libvpx:vpx_scale/symbian/gen_scalers_armv4.s:16 | ldrb r7, [src], #1 @ c = src[2]
strb r4, [dest], #1
mla r4, r10, r4, r9 @ a*64 + 128
mla r4, r11, r8, r4 @ a*64 + b*192 + 1
mov r4, r4, asr #8 @ (a*64 + b*192 + 1) >> 8
strb r4, [dest], #1
add r8, r8, #1 @ b + 1
add ... | arm64 | gas-like | handwritten | webmproject/libvpx | vpx_scale/symbian/gen_scalers_armv4.s | BSD-3-Clause | 0ea50ce9cb4b65eee6afa1d041fe8beb5abda667 | github | media | https://github.com/webmproject/libvpx/blob/0ea50ce9cb4b65eee6afa1d041fe8beb5abda667/vpx_scale/symbian/gen_scalers_armv4.s | 601 | 660 |
webmproject/libvpx:vpx_scale/symbian/gen_scalers_armv4.s:17 | @ r1 = UINT32 dest_pitch
@ r2 = UINT32 dest_width
@)
_VerticalBand_3_4_Scale_ARMv4:
vertical_band_3_4_scale_armv4: @
stmdb sp!, {r4 - r11, lr}
ldr r10, =64
ldr r11, =192
mov r9, #128
@ ldr r1,[r1]
vl34_loop:
mov r3, src
ldrb r4, [r3], r1 @ a = des ... | arm64 | gas-like | handwritten | webmproject/libvpx | vpx_scale/symbian/gen_scalers_armv4.s | BSD-3-Clause | 0ea50ce9cb4b65eee6afa1d041fe8beb5abda667 | github | media | https://github.com/webmproject/libvpx/blob/0ea50ce9cb4b65eee6afa1d041fe8beb5abda667/vpx_scale/symbian/gen_scalers_armv4.s | 641 | 700 |
webmproject/libvpx:vpx_scale/symbian/gen_scalers_armv4.s:18 | strb r7, [lr]
bne vl34_loop
ldmia sp!, {r4 - r11, pc}
@ @|vertical_band_3_4_scale_armv4|
@/****************************************************************************
@ *
@ * ROUTINE : vp8cx_horizontal_line_1_2_scale_c
@ *
@ * INPUTS : const unsigned char *source : Pointer to s... | arm64 | gas-like | handwritten | webmproject/libvpx | vpx_scale/symbian/gen_scalers_armv4.s | BSD-3-Clause | 0ea50ce9cb4b65eee6afa1d041fe8beb5abda667 | github | media | https://github.com/webmproject/libvpx/blob/0ea50ce9cb4b65eee6afa1d041fe8beb5abda667/vpx_scale/symbian/gen_scalers_armv4.s | 681 | 740 |
webmproject/libvpx:vpx_scale/symbian/gen_scalers_armv4.s:19 | ldrb r4, [src], #1
hl12_loop:
subs srcw, srcw, #1
add r5, r3, r4
add r5, r5, #1
mov r5, r5, lsr #1
orr r5, r3, r5, lsl #8
strh r5, [dest], #2
mov r3, r4
ldrneb r4, [src], #1
bne hl12_loop
orr r5, r4, r4, lsl #8
strh r5, [dest]
... | arm64 | gas-like | handwritten | webmproject/libvpx | vpx_scale/symbian/gen_scalers_armv4.s | BSD-3-Clause | 0ea50ce9cb4b65eee6afa1d041fe8beb5abda667 | github | media | https://github.com/webmproject/libvpx/blob/0ea50ce9cb4b65eee6afa1d041fe8beb5abda667/vpx_scale/symbian/gen_scalers_armv4.s | 721 | 780 |
webmproject/libvpx:vpx_scale/symbian/gen_scalers_armv4.s:20 | @ ****************************************************************************/
@void vp8cx_vertical_band_1_2_scale_c
@(
@ r0 = UINT8 *dest
@ r1 = UINT32 dest_pitch
@ r2 = UINT32 dest_width
@)
_VerticalBand_1_2_Scale_ARMv4:
vertical_band_1_2_scale_armv4: @
stmdb sp!, {r4 - r7, lr}
ldr mask, =0x... | arm64 | gas-like | handwritten | webmproject/libvpx | vpx_scale/symbian/gen_scalers_armv4.s | BSD-3-Clause | 0ea50ce9cb4b65eee6afa1d041fe8beb5abda667 | github | media | https://github.com/webmproject/libvpx/blob/0ea50ce9cb4b65eee6afa1d041fe8beb5abda667/vpx_scale/symbian/gen_scalers_armv4.s | 761 | 808 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:2 | IF OPUS_ARM_MAY_HAVE_NEON
; Compute sum[k]=sum(x[j]*y[j+k],j=0...len-1), k=0...3
xcorr_kernel_neon PROC
xcorr_kernel_neon_start
; input:
; r3 = int len
; r4 = opus_val16 *x
; r5 = opus_val16 *y
; q0 = opus_val32 sum[4]
; output:
; q0 = opus_val32 sum[4]
; preserv... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | f8f99516092f4311a9b0784f190ff982df8eb2e6 | github | media | https://github.com/xiph/opus/blob/f8f99516092f4311a9b0784f190ff982df8eb2e6/celt/arm/celt_pitch_xcorr_arm.s | 41 | 100 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:3 | ; Unlike VMOV, VAND is a data processing instruction (and doesn't get
; assembled to VMOV, like VORR would), so it dual-issues with the prior VLD1.
VAND d3, d5, d5
SUBS r12, r12, #8
; Load y[4...11]
VLD1.16 {d4, d5}, [r5]!
VMLAL.S16 q0, d3, d6[0]
VEXT.16 d16, d3, d4, #1
VMLA... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | f8f99516092f4311a9b0784f190ff982df8eb2e6 | github | media | https://github.com/xiph/opus/blob/f8f99516092f4311a9b0784f190ff982df8eb2e6/celt/arm/celt_pitch_xcorr_arm.s | 81 | 140 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:4 | xcorr_kernel_neon_process2
ADDS r12, r12, #2
BLE xcorr_kernel_neon_process1
; Load x[0...1]
VLD2.16 {d6[],d7[]}, [r4]!
; Use VAND since it's a data processing instruction again.
VAND d4, d5, d5
SUB r12, r12, #2
; Load y[4...5]
VLD1.32 {d5[]}, [r5]!
VMLAL.S16 q0,... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | f8f99516092f4311a9b0784f190ff982df8eb2e6 | github | media | https://github.com/xiph/opus/blob/f8f99516092f4311a9b0784f190ff982df8eb2e6/celt/arm/celt_pitch_xcorr_arm.s | 121 | 180 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:5 | ; r2 = opus_val32 *xcorr
; r3 = int len
; output:
; r0 = int maxcorr
; internal usage:
; r4 = opus_val16 *x (for xcorr_kernel_neon())
; r5 = opus_val16 *y (for xcorr_kernel_neon())
; r6 = int max_pitch
; r12 = int j
; q15 = int maxcorr[4] (... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | f8f99516092f4311a9b0784f190ff982df8eb2e6 | github | media | https://github.com/xiph/opus/blob/f8f99516092f4311a9b0784f190ff982df8eb2e6/celt/arm/celt_pitch_xcorr_arm.s | 161 | 220 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:6 | ; if (max_pitch <= 0) goto celt_pitch_xcorr_neon_done
BLE celt_pitch_xcorr_neon_done
; Now compute each remaining sum one at a time.
celt_pitch_xcorr_neon_process_remaining
MOV r4, r0
MOV r5, r1
VMOV.I32 q0, #0
SUBS r12, r3, #8
BLT celt_pitch_xcorr_neon_process_remaining4
; Sum... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | f8f99516092f4311a9b0784f190ff982df8eb2e6 | github | media | https://github.com/xiph/opus/blob/f8f99516092f4311a9b0784f190ff982df8eb2e6/celt/arm/celt_pitch_xcorr_arm.s | 201 | 260 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:7 | VMLAL.S16 q0, d2, d3
BGT celt_pitch_xcorr_neon_process_remaining_loop1
celt_pitch_xcorr_neon_process_remaining_loop_done
VST1.32 {d0[0]}, [r2]!
VMAX.S32 d30, d30, d0
SUBS r6, r6, #1
; _y++
ADD r1, r1, #2
; if (--max_pitch > 0) goto celt_pitch_xcorr_neon_process_remaining
BGT... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | f8f99516092f4311a9b0784f190ff982df8eb2e6 | github | media | https://github.com/xiph/opus/blob/f8f99516092f4311a9b0784f190ff982df8eb2e6/celt/arm/celt_pitch_xcorr_arm.s | 241 | 300 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:8 | LDR r12, [r4], #4 ; Load x[0...1]
; Stall
xcorr_kernel_edsp_process4
; The multiplies must issue from pipeline 0, and can't dual-issue with each
; other. Every other instruction here dual-issues with a multiply, and is
; thus "free". There should be no stalls in the body of the loop.
SMLABB ... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | f8f99516092f4311a9b0784f190ff982df8eb2e6 | github | media | https://github.com/xiph/opus/blob/f8f99516092f4311a9b0784f190ff982df8eb2e6/celt/arm/celt_pitch_xcorr_arm.s | 281 | 340 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:9 | SMLABT r6, r14, r10, r6 ; sum[0] = MAC16_16(sum[0],x,y_1)
SUBS r2, r2, #1 ; j--
SMLABB r7, r14, r11, r7 ; sum[1] = MAC16_16(sum[1],x,y_2)
LDRH r10, [r5], #2 ; r10 = y_4 = *y++
SMLABT r8, r14, r11, r8 ; sum[2] = MAC16_16(sum[2],x,y_3)
LDRHGT r12, [r4],... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | f8f99516092f4311a9b0784f190ff982df8eb2e6 | github | media | https://github.com/xiph/opus/blob/f8f99516092f4311a9b0784f190ff982df8eb2e6/celt/arm/celt_pitch_xcorr_arm.s | 321 | 380 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:10 | ; r1 = int max_pitch
; r12 = int j
; ignored:
; int arch
STMFD sp!, {r4-r11, lr}
MOV r5, r1
LDR r1, [sp, #36]
MOV r4, r0
TST r5, #3
; maxcorr = 1
MOV r0, #1
BEQ celt_pitch_xcorr_edsp_process1u_done
; ... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | f8f99516092f4311a9b0784f190ff982df8eb2e6 | github | media | https://github.com/xiph/opus/blob/f8f99516092f4311a9b0784f190ff982df8eb2e6/celt/arm/celt_pitch_xcorr_arm.s | 361 | 420 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:11 | BGT celt_pitch_xcorr_edsp_process1u_loop1
; Restore _x
SUB r4, r4, r3, LSL #1
; Restore and advance _y
SUB r5, r5, r3, LSL #1
; maxcorr = max(maxcorr, sum)
CMP r0, r14
ADD r5, r5, #2
MOVLT r0, r14
SUBS r1, r1, #1
; xcorr[i] = sum
STR r14,... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | f8f99516092f4311a9b0784f190ff982df8eb2e6 | github | media | https://github.com/xiph/opus/blob/f8f99516092f4311a9b0784f190ff982df8eb2e6/celt/arm/celt_pitch_xcorr_arm.s | 401 | 460 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:12 | ADDS r1, r1, #2
BLT celt_pitch_xcorr_edsp_process1a
SUBS r12, r3, #4
; {r10, r11} = {sum0, sum1} = {0, 0}
MOV r10, #0
MOV r11, #0
LDR r8, [r5], #4
BLE celt_pitch_xcorr_edsp_process2_loop_done
LDR r6, [r4], #4
LDR r9, [r5], #4
celt_pitch_xcor... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | f8f99516092f4311a9b0784f190ff982df8eb2e6 | github | media | https://github.com/xiph/opus/blob/f8f99516092f4311a9b0784f190ff982df8eb2e6/celt/arm/celt_pitch_xcorr_arm.s | 441 | 500 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:13 | ; Stall
SMLABB r10, r6, r8, r10 ; sum0 = MAC16_16(sum0, x_0, y_0)
LDRHGT r7, [r4], #2
SMLABT r11, r6, r8, r11 ; sum1 = MAC16_16(sum1, x_0, y_1)
BLE celt_pitch_xcorr_edsp_process2_done
LDRH r9, [r5], #2
SMLABT r10, r7, r8, r10 ; sum0 = MAC16_16(sum0, x_0, y_1)
SM... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | f8f99516092f4311a9b0784f190ff982df8eb2e6 | github | media | https://github.com/xiph/opus/blob/f8f99516092f4311a9b0784f190ff982df8eb2e6/celt/arm/celt_pitch_xcorr_arm.s | 481 | 540 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:14 | SMLABB r14, r7, r9, r14 ; sum = MAC16_16(sum, x_2, y_2)
LDRGE r8, [r5], #4
SMLATT r14, r7, r9, r14 ; sum = MAC16_16(sum, x_3, y_3)
LDRGE r7, [r4], #4
LDRGE r9, [r5], #4
BGE celt_pitch_xcorr_edsp_process1a_loop4
celt_pitch_xcorr_edsp_process1a_loop_done
ADDS r... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | f8f99516092f4311a9b0784f190ff982df8eb2e6 | github | media | https://github.com/xiph/opus/blob/f8f99516092f4311a9b0784f190ff982df8eb2e6/celt/arm/celt_pitch_xcorr_arm.s | 521 | 551 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:2 | IF OPUS_ARM_MAY_HAVE_NEON
; Compute sum[k]=sum(x[j]*y[j+k],j=0...len-1), k=0...3
xcorr_kernel_neon PROC
xcorr_kernel_neon_start
; input:
; r3 = int len
; r4 = opus_val16 *x
; r5 = opus_val16 *y
; q0 = opus_val32 sum[4]
; output:
; q0 = opus_val32 sum[4]
; preserv... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | 85fb8a1d17a563d1e7989e8268a856a5c90ecfe7 | github | media | https://github.com/xiph/opus/blob/85fb8a1d17a563d1e7989e8268a856a5c90ecfe7/celt/arm/celt_pitch_xcorr_arm.s | 41 | 100 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:3 | ; Unlike VMOV, VAND is a data processsing instruction (and doesn't get
; assembled to VMOV, like VORR would), so it dual-issues with the prior VLD1.
VAND d3, d5, d5
SUBS r12, r12, #8
; Load y[4...11]
VLD1.16 {d4, d5}, [r5]!
VMLAL.S16 q0, d3, d6[0]
VEXT.16 d16, d3, d4, #1
VML... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | 85fb8a1d17a563d1e7989e8268a856a5c90ecfe7 | github | media | https://github.com/xiph/opus/blob/85fb8a1d17a563d1e7989e8268a856a5c90ecfe7/celt/arm/celt_pitch_xcorr_arm.s | 81 | 140 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:4 | xcorr_kernel_neon_process2
ADDS r12, r12, #2
BLE xcorr_kernel_neon_process1
; Load x[0...1]
VLD2.16 {d6[],d7[]}, [r4]!
; Use VAND since it's a data processing instruction again.
VAND d4, d5, d5
SUB r12, r12, #2
; Load y[4...5]
VLD1.32 {d5[]}, [r5]!
VMLAL.S16 q0,... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | ac0e294b52ecc600c05b4b67f74e0f3ccf30a030 | github | media | https://github.com/xiph/opus/blob/ac0e294b52ecc600c05b4b67f74e0f3ccf30a030/celt/arm/celt_pitch_xcorr_arm.s | 121 | 180 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:5 | ; r2 = opus_val32 *xcorr
; r3 = int len
; output:
; r0 = int maxcorr
; internal usage:
; r4 = opus_val16 *x (for xcorr_kernel_neon())
; r5 = opus_val16 *y (for xcorr_kernel_neon())
; r6 = int max_pitch
; r12 = int j
; q15 = int maxcorr[4] (... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | ac0e294b52ecc600c05b4b67f74e0f3ccf30a030 | github | media | https://github.com/xiph/opus/blob/ac0e294b52ecc600c05b4b67f74e0f3ccf30a030/celt/arm/celt_pitch_xcorr_arm.s | 161 | 220 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:6 | ; Now compute each remaining sum one at a time.
celt_pitch_xcorr_neon_process_remaining
MOV r4, r0
MOV r5, r1
VMOV.I32 q0, #0
SUBS r12, r3, #8
BLT celt_pitch_xcorr_neon_process_remaining4
; Sum terms 8 at a time.
celt_pitch_xcorr_neon_process_remaining_loop8
; Load x[0...7]
V... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | ac0e294b52ecc600c05b4b67f74e0f3ccf30a030 | github | media | https://github.com/xiph/opus/blob/ac0e294b52ecc600c05b4b67f74e0f3ccf30a030/celt/arm/celt_pitch_xcorr_arm.s | 201 | 260 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:7 | celt_pitch_xcorr_neon_process_remaining_loop_done
VST1.32 {d0[0]}, [r2]!
VMAX.S32 d30, d30, d0
SUBS r6, r6, #1
; _y++
ADD r1, r1, #2
; if (--max_pitch > 0) goto celt_pitch_xcorr_neon_process_remaining
BGT celt_pitch_xcorr_neon_process_remaining
celt_pitch_xcorr_neon_done
VMOV.3... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | ac0e294b52ecc600c05b4b67f74e0f3ccf30a030 | github | media | https://github.com/xiph/opus/blob/ac0e294b52ecc600c05b4b67f74e0f3ccf30a030/celt/arm/celt_pitch_xcorr_arm.s | 241 | 300 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:8 | xcorr_kernel_edsp_process4
; The multiplies must issue from pipeline 0, and can't dual-issue with each
; other. Every other instruction here dual-issues with a multiply, and is
; thus "free". There should be no stalls in the body of the loop.
SMLABB r6, r12, r10, r6 ; sum[0] = MAC16_16(sum[0],x_0,y_0)
... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | ac0e294b52ecc600c05b4b67f74e0f3ccf30a030 | github | media | https://github.com/xiph/opus/blob/ac0e294b52ecc600c05b4b67f74e0f3ccf30a030/celt/arm/celt_pitch_xcorr_arm.s | 281 | 340 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:9 | SMLABB r7, r14, r11, r7 ; sum[1] = MAC16_16(sum[1],x,y_2)
LDRH r10, [r5], #2 ; r10 = y_4 = *y++
SMLABT r8, r14, r11, r8 ; sum[2] = MAC16_16(sum[2],x,y_3)
LDRHGT r12, [r4], #2 ; r12 = *x++
SMLABB r9, r14, r10, r9 ; sum[3] = MAC16_16(sum[3],x,y_4)
BLE xcorr_kernel... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | ac0e294b52ecc600c05b4b67f74e0f3ccf30a030 | github | media | https://github.com/xiph/opus/blob/ac0e294b52ecc600c05b4b67f74e0f3ccf30a030/celt/arm/celt_pitch_xcorr_arm.s | 321 | 380 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:10 | STMFD sp!, {r4-r11, lr}
MOV r5, r1
LDR r1, [sp, #36]
MOV r4, r0
TST r5, #3
; maxcorr = 1
MOV r0, #1
BEQ celt_pitch_xcorr_edsp_process1u_done
; Compute one sum at the start to make y 32-bit aligned.
SUBS r12, r3, #4
; r14 = sum = 0
... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | ac0e294b52ecc600c05b4b67f74e0f3ccf30a030 | github | media | https://github.com/xiph/opus/blob/ac0e294b52ecc600c05b4b67f74e0f3ccf30a030/celt/arm/celt_pitch_xcorr_arm.s | 361 | 420 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:11 | SUB r5, r5, r3, LSL #1
; maxcorr = max(maxcorr, sum)
CMP r0, r14
ADD r5, r5, #2
MOVLT r0, r14
SUBS r1, r1, #1
; xcorr[i] = sum
STR r14, [r2], #4
BLE celt_pitch_xcorr_edsp_done
celt_pitch_xcorr_edsp_process1u_done
; if (max_pitch < 4) goto celt_pitch_x... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | ac0e294b52ecc600c05b4b67f74e0f3ccf30a030 | github | media | https://github.com/xiph/opus/blob/ac0e294b52ecc600c05b4b67f74e0f3ccf30a030/celt/arm/celt_pitch_xcorr_arm.s | 401 | 460 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:12 | MOV r10, #0
MOV r11, #0
LDR r8, [r5], #4
BLE celt_pitch_xcorr_edsp_process2_loop_done
LDR r6, [r4], #4
LDR r9, [r5], #4
celt_pitch_xcorr_edsp_process2_loop4
SMLABB r10, r6, r8, r10 ; sum0 = MAC16_16(sum0, x_0, y_0)
LDR r7, [r4], #4
SMLABT ... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | ac0e294b52ecc600c05b4b67f74e0f3ccf30a030 | github | media | https://github.com/xiph/opus/blob/ac0e294b52ecc600c05b4b67f74e0f3ccf30a030/celt/arm/celt_pitch_xcorr_arm.s | 441 | 500 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:13 | BLE celt_pitch_xcorr_edsp_process2_done
LDRH r9, [r5], #2
SMLABT r10, r7, r8, r10 ; sum0 = MAC16_16(sum0, x_0, y_1)
SMLABB r11, r7, r9, r11 ; sum1 = MAC16_16(sum1, x_0, y_2)
celt_pitch_xcorr_edsp_process2_done
; Restore _x
SUB r4, r4, r3, LSL #1
; Restore and advance _y
... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | ac0e294b52ecc600c05b4b67f74e0f3ccf30a030 | github | media | https://github.com/xiph/opus/blob/ac0e294b52ecc600c05b4b67f74e0f3ccf30a030/celt/arm/celt_pitch_xcorr_arm.s | 481 | 540 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:14 | LDRGE r9, [r5], #4
BGE celt_pitch_xcorr_edsp_process1a_loop4
celt_pitch_xcorr_edsp_process1a_loop_done
ADDS r12, r12, #2
LDRGE r6, [r4], #4
LDRGE r8, [r5], #4
; Stall
SMLABBGE r14, r6, r8, r14 ; sum = MAC16_16(sum, x_0, y_0)
SUBGE r12, r12, #2
SMLATTGE r14... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | ac0e294b52ecc600c05b4b67f74e0f3ccf30a030 | github | media | https://github.com/xiph/opus/blob/ac0e294b52ecc600c05b4b67f74e0f3ccf30a030/celt/arm/celt_pitch_xcorr_arm.s | 521 | 547 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:2 | IF OPUS_ARM_MAY_HAVE_NEON
; Compute sum[k]=sum(x[j]*y[j+k],j=0...len-1), k=0...3
xcorr_kernel_neon PROC
; input:
; r3 = int len
; r4 = opus_val16 *x
; r5 = opus_val16 *y
; q0 = opus_val32 sum[4]
; output:
; q0 = opus_val32 sum[4]
; preserved: r0-r3, r6-r11, d2, q... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | e70faf98b0465e4f278c72ce2d7b4ad10221a2f2 | github | media | https://github.com/xiph/opus/blob/e70faf98b0465e4f278c72ce2d7b4ad10221a2f2/celt/arm/celt_pitch_xcorr_arm.s | 41 | 100 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:3 | ; assembled to VMOV, like VORR would), so it dual-issues with the prior VLD1.
VAND d3, d5, d5
SUBS r12, r12, #8
; Load y[4...11]
VLD1.16 {d4, d5}, [r5]!
VMLAL.S16 q0, d3, d6[0]
VEXT.16 d16, d3, d4, #1
VMLAL.S16 q0, d4, d7[0]
VEXT.16 d17, d4, d5, #1
VMLAL.S16 q0,... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | e70faf98b0465e4f278c72ce2d7b4ad10221a2f2 | github | media | https://github.com/xiph/opus/blob/e70faf98b0465e4f278c72ce2d7b4ad10221a2f2/celt/arm/celt_pitch_xcorr_arm.s | 81 | 140 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:4 | ADDS r12, r12, #2
BLE xcorr_kernel_neon_process1
; Load x[0...1]
VLD2.16 {d6[],d7[]}, [r4]!
; Use VAND since it's a data processing instruction again.
VAND d4, d5, d5
SUB r12, r12, #2
; Load y[4...5]
VLD1.32 {d5[]}, [r5]!
VMLAL.S16 q0, d4, d6
VEXT.16 d16, d... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | e70faf98b0465e4f278c72ce2d7b4ad10221a2f2 | github | media | https://github.com/xiph/opus/blob/e70faf98b0465e4f278c72ce2d7b4ad10221a2f2/celt/arm/celt_pitch_xcorr_arm.s | 121 | 180 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:5 | ; r3 = int len
; output:
; r0 = int maxcorr
; internal usage:
; r4 = opus_val16 *x (for xcorr_kernel_neon())
; r5 = opus_val16 *y (for xcorr_kernel_neon())
; r6 = int max_pitch
; r12 = int j
; q15 = int maxcorr[4] (q15 is not used by xcorr_kerne... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | e70faf98b0465e4f278c72ce2d7b4ad10221a2f2 | github | media | https://github.com/xiph/opus/blob/e70faf98b0465e4f278c72ce2d7b4ad10221a2f2/celt/arm/celt_pitch_xcorr_arm.s | 161 | 220 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:6 | celt_pitch_xcorr_neon_process_remaining
MOV r4, r0
MOV r5, r1
VMOV.I32 q0, #0
SUBS r12, r3, #8
BLT celt_pitch_xcorr_neon_process_remaining4
; Sum terms 8 at a time.
celt_pitch_xcorr_neon_process_remaining_loop8
; Load x[0...7]
VLD1.16 {q1}, [r4]!
; Load y[0...7]
VLD1... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | e70faf98b0465e4f278c72ce2d7b4ad10221a2f2 | github | media | https://github.com/xiph/opus/blob/e70faf98b0465e4f278c72ce2d7b4ad10221a2f2/celt/arm/celt_pitch_xcorr_arm.s | 201 | 260 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:7 | VST1.32 {d0[0]}, [r2]!
VMAX.S32 d30, d30, d0
SUBS r6, r6, #1
; _y++
ADD r1, r1, #2
; if (--max_pitch > 0) goto celt_pitch_xcorr_neon_process_remaining
BGT celt_pitch_xcorr_neon_process_remaining
celt_pitch_xcorr_neon_done
VMOV.32 r0, d30[0]
LDMFD sp!, {r4-r6, pc}
... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | e70faf98b0465e4f278c72ce2d7b4ad10221a2f2 | github | media | https://github.com/xiph/opus/blob/e70faf98b0465e4f278c72ce2d7b4ad10221a2f2/celt/arm/celt_pitch_xcorr_arm.s | 241 | 300 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:8 | ; other. Every other instruction here dual-issues with a multiply, and is
; thus "free". There should be no stalls in the body of the loop.
SMLABB r6, r12, r10, r6 ; sum[0] = MAC16_16(sum[0],x_0,y_0)
LDR r14, [r4], #4 ; Load x[2...3]
SMLABT r7, r12, r10, r7 ; sum[1] = MAC16_16(sum[... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | e70faf98b0465e4f278c72ce2d7b4ad10221a2f2 | github | media | https://github.com/xiph/opus/blob/e70faf98b0465e4f278c72ce2d7b4ad10221a2f2/celt/arm/celt_pitch_xcorr_arm.s | 281 | 340 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:9 | SMLABT r8, r14, r11, r8 ; sum[2] = MAC16_16(sum[2],x,y_3)
LDRHGT r12, [r4], #2 ; r12 = *x++
SMLABB r9, r14, r10, r9 ; sum[3] = MAC16_16(sum[3],x,y_4)
BLE xcorr_kernel_edsp_done
SMLABB r6, r12, r11, r6 ; sum[0] = MAC16_16(sum[0],tmp,y_2)
CMP r2, #1 ; j--
... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | e70faf98b0465e4f278c72ce2d7b4ad10221a2f2 | github | media | https://github.com/xiph/opus/blob/e70faf98b0465e4f278c72ce2d7b4ad10221a2f2/celt/arm/celt_pitch_xcorr_arm.s | 321 | 380 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:10 | LDR r1, [sp, #36]
MOV r4, r0
TST r5, #3
; maxcorr = 1
MOV r0, #1
BEQ celt_pitch_xcorr_edsp_process1u_done
; Compute one sum at the start to make y 32-bit aligned.
SUBS r12, r3, #4
; r14 = sum = 0
MOV r14, #0
LDRH r8, [r5], #2
BLE ... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | e70faf98b0465e4f278c72ce2d7b4ad10221a2f2 | github | media | https://github.com/xiph/opus/blob/e70faf98b0465e4f278c72ce2d7b4ad10221a2f2/celt/arm/celt_pitch_xcorr_arm.s | 361 | 420 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:11 | CMP r0, r14
ADD r5, r5, #2
MOVLT r0, r14
SUBS r1, r1, #1
; xcorr[i] = sum
STR r14, [r2], #4
BLE celt_pitch_xcorr_edsp_done
celt_pitch_xcorr_edsp_process1u_done
; if (max_pitch < 4) goto celt_pitch_xcorr_edsp_process2
SUBS r1, r1, #4
BLT celt_pitch_xcor... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | e70faf98b0465e4f278c72ce2d7b4ad10221a2f2 | github | media | https://github.com/xiph/opus/blob/e70faf98b0465e4f278c72ce2d7b4ad10221a2f2/celt/arm/celt_pitch_xcorr_arm.s | 401 | 460 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:12 | LDR r8, [r5], #4
BLE celt_pitch_xcorr_edsp_process2_loop_done
LDR r6, [r4], #4
LDR r9, [r5], #4
celt_pitch_xcorr_edsp_process2_loop4
SMLABB r10, r6, r8, r10 ; sum0 = MAC16_16(sum0, x_0, y_0)
LDR r7, [r4], #4
SMLABT r11, r6, r8, r11 ; sum1 = MAC16_16(su... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | e70faf98b0465e4f278c72ce2d7b4ad10221a2f2 | github | media | https://github.com/xiph/opus/blob/e70faf98b0465e4f278c72ce2d7b4ad10221a2f2/celt/arm/celt_pitch_xcorr_arm.s | 441 | 500 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:13 | SMLABT r10, r7, r8, r10 ; sum0 = MAC16_16(sum0, x_0, y_1)
SMLABB r11, r7, r9, r11 ; sum1 = MAC16_16(sum1, x_0, y_2)
celt_pitch_xcorr_edsp_process2_done
; Restore _x
SUB r4, r4, r3, LSL #1
; Restore and advance _y
SUB r5, r5, r3, LSL #1
; maxcorr = max(maxcorr, sum0)
C... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | e70faf98b0465e4f278c72ce2d7b4ad10221a2f2 | github | media | https://github.com/xiph/opus/blob/e70faf98b0465e4f278c72ce2d7b4ad10221a2f2/celt/arm/celt_pitch_xcorr_arm.s | 481 | 540 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:14 | celt_pitch_xcorr_edsp_process1a_loop_done
ADDS r12, r12, #2
LDRGE r6, [r4], #4
LDRGE r8, [r5], #4
; Stall
SMLABBGE r14, r6, r8, r14 ; sum = MAC16_16(sum, x_0, y_0)
SUBGE r12, r12, #2
SMLATTGE r14, r6, r8, r14 ; sum = MAC16_16(sum, x_1, y_1)
ADDS r12, ... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | e70faf98b0465e4f278c72ce2d7b4ad10221a2f2 | github | media | https://github.com/xiph/opus/blob/e70faf98b0465e4f278c72ce2d7b4ad10221a2f2/celt/arm/celt_pitch_xcorr_arm.s | 521 | 545 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:8 | ; other. Every other instruction here dual-issues with a multiply, and is
; thus "free". There should be no stalls in the body of the loop.
SMLABB r6, r12, r10, r6 ; sum[0] = MAC16_16(sum[0],x_0,y_0)
LDR r14, [r4], #4 ; Load x[2...3]
SMLABT r7, r12, r10, r7 ; sum[1] = MAC16_16(sum[... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | c16a96b45886283d23f8bfda5bad115397f21689 | github | media | https://github.com/xiph/opus/blob/c16a96b45886283d23f8bfda5bad115397f21689/celt/arm/celt_pitch_xcorr_arm.s | 281 | 340 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:9 | SMLABT r8, r14, r11, r8 ; sum[2] = MAC16_16(sum[2],x,y_3)
LDRGTH r12, [r4], #2 ; r12 = *x++
SMLABB r9, r14, r10, r9 ; sum[3] = MAC16_16(sum[3],x,y_4)
BLE xcorr_kernel_edsp_done
SMLABB r6, r12, r11, r6 ; sum[0] = MAC16_16(sum[0],tmp,y_2)
CMP r2, #1 ; j--
... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | c16a96b45886283d23f8bfda5bad115397f21689 | github | media | https://github.com/xiph/opus/blob/c16a96b45886283d23f8bfda5bad115397f21689/celt/arm/celt_pitch_xcorr_arm.s | 321 | 380 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:10 | LDR r1, [sp, #36]
MOV r4, r0
TST r5, #3
; maxcorr = 1
MOV r0, #1
BEQ celt_pitch_xcorr_edsp_process1u_done
; Compute one sum at the start to make y 32-bit aligned.
SUBS r12, r3, #4
; r14 = sum = 0
MOV r14, #0
LDRH r8, [r5], #2
BLE ... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | c16a96b45886283d23f8bfda5bad115397f21689 | github | media | https://github.com/xiph/opus/blob/c16a96b45886283d23f8bfda5bad115397f21689/celt/arm/celt_pitch_xcorr_arm.s | 361 | 420 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:12 | LDR r8, [r5], #4
BLE celt_pitch_xcorr_edsp_process2_loop_done
LDR r6, [r4], #4
LDR r9, [r5], #4
celt_pitch_xcorr_edsp_process2_loop4
SMLABB r10, r6, r8, r10 ; sum0 = MAC16_16(sum0, x_0, y_0)
LDR r7, [r4], #4
SMLABT r11, r6, r8, r11 ; sum1 = MAC16_16(su... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | c16a96b45886283d23f8bfda5bad115397f21689 | github | media | https://github.com/xiph/opus/blob/c16a96b45886283d23f8bfda5bad115397f21689/celt/arm/celt_pitch_xcorr_arm.s | 441 | 500 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:13 | SMLABT r10, r7, r8, r10 ; sum0 = MAC16_16(sum0, x_0, y_1)
SMLABB r11, r7, r9, r11 ; sum1 = MAC16_16(sum1, x_0, y_2)
celt_pitch_xcorr_edsp_process2_done
; Restore _x
SUB r4, r4, r3, LSL #1
; Restore and advance _y
SUB r5, r5, r3, LSL #1
; maxcorr = max(maxcorr, sum0)
C... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | c16a96b45886283d23f8bfda5bad115397f21689 | github | media | https://github.com/xiph/opus/blob/c16a96b45886283d23f8bfda5bad115397f21689/celt/arm/celt_pitch_xcorr_arm.s | 481 | 540 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:14 | celt_pitch_xcorr_edsp_process1a_loop_done
ADDS r12, r12, #2
LDRGE r6, [r4], #4
LDRGE r8, [r5], #4
; Stall
SMLABBGE r14, r6, r8, r14 ; sum = MAC16_16(sum, x_0, y_0)
SUBGE r12, r12, #2
SMLATTGE r14, r6, r8, r14 ; sum = MAC16_16(sum, x_1, y_1)
ADDS r12, ... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | c16a96b45886283d23f8bfda5bad115397f21689 | github | media | https://github.com/xiph/opus/blob/c16a96b45886283d23f8bfda5bad115397f21689/celt/arm/celt_pitch_xcorr_arm.s | 521 | 545 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:9 | SMLABT r8, r14, r11, r8 ; sum[2] = MAC16_16(sum[2],x,y_3)
LDRGTH r12, [r4], #2 ; r12 = *x++
SMLABB r9, r14, r10, r9 ; sum[3] = MAC16_16(sum[3],x,y_4)
BLE xcorr_kernel_edsp_done
SMLABB r6, r12, r11, r6 ; sum[0] = MAC16_16(sum[0],tmp,y_2)
CMP r2, #1 ; j--
... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | e98816e9c10c9e0567f57e06b9b23e515783502c | github | media | https://github.com/xiph/opus/blob/e98816e9c10c9e0567f57e06b9b23e515783502c/celt/arm/celt_pitch_xcorr_arm.s | 321 | 380 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:10 | LDR r1, [sp, #36]
MOV r4, r0
TST r5, #3
; maxcorr = 1
MOV r0, #1
BEQ celt_pitch_xcorr_edsp_process1u_done
; Compute one sum at the start to make y 32-bit aligned.
SUBS r12, r3, #4
; r14 = sum = 0
MOV r14, #0
LDRH r8, [r5], #2
BLE ... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | e98816e9c10c9e0567f57e06b9b23e515783502c | github | media | https://github.com/xiph/opus/blob/e98816e9c10c9e0567f57e06b9b23e515783502c/celt/arm/celt_pitch_xcorr_arm.s | 361 | 420 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:11 | ; maxcorr = max(maxcorr, sum)
CMP r0, r14
ADD r5, r5, #2
MOVLT r0, r14
SUBS r1, r1, #1
; xcorr[i] = sum
STR r14, [r2], #4
BLE celt_pitch_xcorr_edsp_done
celt_pitch_xcorr_edsp_process1u_done
; if (max_pitch < 4) goto celt_pitch_xcorr_edsp_process2
SUBS ... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | e98816e9c10c9e0567f57e06b9b23e515783502c | github | media | https://github.com/xiph/opus/blob/e98816e9c10c9e0567f57e06b9b23e515783502c/celt/arm/celt_pitch_xcorr_arm.s | 401 | 460 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:12 | MOV r11, #0
LDR r8, [r5], #4
BLE celt_pitch_xcorr_edsp_process2_loop_done
LDR r6, [r4], #4
LDR r9, [r5], #4
celt_pitch_xcorr_edsp_process2_loop4
SMLABB r10, r6, r8, r10 ; sum0 = MAC16_16(sum0, x_0, y_0)
LDR r7, [r4], #4
SMLABT r11, r6, r8, r11 ... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | e98816e9c10c9e0567f57e06b9b23e515783502c | github | media | https://github.com/xiph/opus/blob/e98816e9c10c9e0567f57e06b9b23e515783502c/celt/arm/celt_pitch_xcorr_arm.s | 441 | 500 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:13 | LDRH r9, [r5], #2
SMLABT r10, r7, r8, r10 ; sum0 = MAC16_16(sum0, x_0, y_1)
SMLABB r11, r7, r9, r11 ; sum1 = MAC16_16(sum1, x_0, y_2)
celt_pitch_xcorr_edsp_process2_done
; Restore _x
SUB r4, r4, r3, LSL #1
; Restore and advance _y
SUB r5, r5, r3, LSL #1
; maxc... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | e98816e9c10c9e0567f57e06b9b23e515783502c | github | media | https://github.com/xiph/opus/blob/e98816e9c10c9e0567f57e06b9b23e515783502c/celt/arm/celt_pitch_xcorr_arm.s | 481 | 540 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:14 | BGE celt_pitch_xcorr_edsp_process1a_loop4
celt_pitch_xcorr_edsp_process1a_loop_done
ADDS r12, r12, #2
LDRGE r6, [r4], #4
LDRGE r8, [r5], #4
; Stall
SMLABBGE r14, r6, r8, r14 ; sum = MAC16_16(sum, x_0, y_0)
SUBGE r12, r12, #2
SMLATTGE r14, r6, r8, r14 ; sum = MA... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | e98816e9c10c9e0567f57e06b9b23e515783502c | github | media | https://github.com/xiph/opus/blob/e98816e9c10c9e0567f57e06b9b23e515783502c/celt/arm/celt_pitch_xcorr_arm.s | 521 | 545 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:7 | ; VST1.32 {d0[0]}, [r2]!
; VMAX.S32 d30, d30, d0
; SUBS r6, r6, #1
; ; _y++
; ADD r1, r1, #2
; ; if (--max_pitch > 0) goto celt_pitch_xcorr_neon_process_remaining
; BGT celt_pitch_xcorr_neon_process_remaining
;celt_pitch_xcorr_neon_done
; VMOV.32 r0, d30[0]
; LDMFD sp!, {r... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | 5c02c5ffb58a08c1b705e6fa2ab73f631f658823 | github | media | https://github.com/xiph/opus/blob/5c02c5ffb58a08c1b705e6fa2ab73f631f658823/celt/arm/celt_pitch_xcorr_arm.s | 241 | 300 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:8 | VLD1.16 d2, [r0]! ; Load x[3] downto x[0] to d2 lane
VEXT.16 d5, d3, d4, #1 ; Build y[4] downto y[1] vector (yy1)
VEXT.16 d6, d3, d4, #2 ; Build y[5] downto y[2] vector (yy2)
VEXT.16 d7, d3, d4, #3 ; Build y[6] downto y[3] vector (yy3)
VMLAL.S16 q0, d3, d2[0] ; MAC16_16(sum, x[0], yy0)
... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | 5c02c5ffb58a08c1b705e6fa2ab73f631f658823 | github | media | https://github.com/xiph/opus/blob/5c02c5ffb58a08c1b705e6fa2ab73f631f658823/celt/arm/celt_pitch_xcorr_arm.s | 281 | 340 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:9 | ; r3 = int len
; output:
; r0 = maxcorr
STMFD sp!, {r4-r9, lr}
LDR r4, [sp, #28] ; r4 = int max_pitch
MOV r5, r0 ; r5 = _x
MOV r6, r1 ; r6 = _y
MOV r7, r2 ; r7 = xcorr
MOV r2, r3 ; r2 = len
VMOV... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | 5c02c5ffb58a08c1b705e6fa2ab73f631f658823 | github | media | https://github.com/xiph/opus/blob/5c02c5ffb58a08c1b705e6fa2ab73f631f658823/celt/arm/celt_pitch_xcorr_arm.s | 321 | 380 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:10 | BGE celt_pitch_xcorr_neon_done
celt_pitch_xcorr_neon_process_remaining
MOV r0, r5 ; r0 = _x
ADD r1, r6, r8, LSL #1 ; r1 = _y + i
VMOV.I32 q0, #0
MOVS r3, r2, LSR #2 ; r3 = j = len
BEQ inner_loop_neon_process4_done
inner_loop_neon_process4
VLD1.16 {d2},... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | 5c02c5ffb58a08c1b705e6fa2ab73f631f658823 | github | media | https://github.com/xiph/opus/blob/5c02c5ffb58a08c1b705e6fa2ab73f631f658823/celt/arm/celt_pitch_xcorr_arm.s | 361 | 420 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:11 | VMOV.32 r0, d0[0]
LDMFD sp!, {r4-r9, pc}
ENDP
ENDIF
IF OPUS_ARM_MAY_HAVE_EDSP
; This will get used on ARMv7 devices without NEON, so it has been optimized
; to take advantage of dual-issuing where possible.
xcorr_kernel_edsp PROC
; input:
; r3 = int len
; r4 = opus_val16 *_x (m... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | 5c02c5ffb58a08c1b705e6fa2ab73f631f658823 | github | media | https://github.com/xiph/opus/blob/5c02c5ffb58a08c1b705e6fa2ab73f631f658823/celt/arm/celt_pitch_xcorr_arm.s | 401 | 460 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:12 | SMLABT r9, r12, r11, r9 ; sum[3] = MAC16_16(sum[3],x_0,y_3)
SMLATT r6, r12, r10, r6 ; sum[0] = MAC16_16(sum[0],x_1,y_1)
LDR r10, [r5], #4 ; Load y[4...5]
SMLATB r7, r12, r11, r7 ; sum[1] = MAC16_16(sum[1],x_1,y_2)
SMLATT r8, r12, r11, r8 ; sum[2] = MAC16_16(sum[2],x... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | 5c02c5ffb58a08c1b705e6fa2ab73f631f658823 | github | media | https://github.com/xiph/opus/blob/5c02c5ffb58a08c1b705e6fa2ab73f631f658823/celt/arm/celt_pitch_xcorr_arm.s | 441 | 500 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:13 | LDRH r2, [r5], #2 ; r2 = y_5 = *y++
SMLABB r8, r12, r10, r8 ; sum[2] = MAC16_16(sum[2],tmp,y_4)
LDRGTH r14, [r4] ; r14 = *x
SMLABB r9, r12, r2, r9 ; sum[3] = MAC16_16(sum[3],tmp,y_5)
BLE xcorr_kernel_edsp_done
SMLABT r6, r14, r11, r6 ; sum[0] = MAC16_16(su... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | 5c02c5ffb58a08c1b705e6fa2ab73f631f658823 | github | media | https://github.com/xiph/opus/blob/5c02c5ffb58a08c1b705e6fa2ab73f631f658823/celt/arm/celt_pitch_xcorr_arm.s | 481 | 540 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:14 | SUBS r12, r3, #4
; r14 = sum = 0
MOV r14, #0
LDRH r8, [r5], #2
BLE celt_pitch_xcorr_edsp_process1u_loop4_done
LDR r6, [r4], #4
LDR r9, [r5], #4
LDR r7, [r4], #4
celt_pitch_xcorr_edsp_process1u_loop4
SMLABB r14, r6, r8, r14 ; sum = MAC16_16(su... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | 5c02c5ffb58a08c1b705e6fa2ab73f631f658823 | github | media | https://github.com/xiph/opus/blob/5c02c5ffb58a08c1b705e6fa2ab73f631f658823/celt/arm/celt_pitch_xcorr_arm.s | 521 | 580 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:15 | BLE celt_pitch_xcorr_edsp_done
celt_pitch_xcorr_edsp_process1u_done
; if (max_pitch < 4) goto celt_pitch_xcorr_edsp_process2
SUBS r1, r1, #4
BLT celt_pitch_xcorr_edsp_process2
celt_pitch_xcorr_edsp_process4
; xcorr_kernel_edsp parameters:
; r3 = len, r4 = _x, r5 = _y, r6...r9 = sum[4] = {0, 0, 0, 0}
... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | 5c02c5ffb58a08c1b705e6fa2ab73f631f658823 | github | media | https://github.com/xiph/opus/blob/5c02c5ffb58a08c1b705e6fa2ab73f631f658823/celt/arm/celt_pitch_xcorr_arm.s | 561 | 620 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:16 | LDR r7, [r4], #4
SMLABT r11, r6, r8, r11 ; sum1 = MAC16_16(sum1, x_0, y_1)
SUBS r12, r12, #4 ; j-=4
SMLATT r10, r6, r8, r10 ; sum0 = MAC16_16(sum0, x_1, y_1)
LDR r8, [r5], #4
SMLATB r11, r6, r9, r11 ; sum1 = MAC16_16(sum1, x_1, y_2)
LDRGT ... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | 5c02c5ffb58a08c1b705e6fa2ab73f631f658823 | github | media | https://github.com/xiph/opus/blob/5c02c5ffb58a08c1b705e6fa2ab73f631f658823/celt/arm/celt_pitch_xcorr_arm.s | 601 | 660 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:17 | SUB r5, r5, r3, LSL #1
; maxcorr = max(maxcorr, sum0)
CMP r0, r10
ADD r5, r5, #2
MOVLT r0, r10
SUB r1, r1, #2
; maxcorr = max(maxcorr, sum1)
CMP r0, r11
; xcorr[i] = sum
STR r10, [r2], #4
MOVLT r0, r11
STR r11, [r2], #4
c... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | 5c02c5ffb58a08c1b705e6fa2ab73f631f658823 | github | media | https://github.com/xiph/opus/blob/5c02c5ffb58a08c1b705e6fa2ab73f631f658823/celt/arm/celt_pitch_xcorr_arm.s | 641 | 698 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:18 | SUBGE r12, r12, #2
SMLATTGE r14, r6, r8, r14 ; sum = MAC16_16(sum, x_1, y_1)
ADDS r12, r12, #1
LDRGEH r6, [r4], #2
LDRGEH r8, [r5], #2
SMLABBGE r14, r6, r8, r14 ; sum = MAC16_16(sum, *x, *y)
; maxcorr = max(maxcorr, sum)
CMP r0, r14
; xcorr[i] = sum
... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | 5c02c5ffb58a08c1b705e6fa2ab73f631f658823 | github | media | https://github.com/xiph/opus/blob/5c02c5ffb58a08c1b705e6fa2ab73f631f658823/celt/arm/celt_pitch_xcorr_arm.s | 681 | 698 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:10 | BGE celt_pitch_xcorr_neon_done
celt_pitch_xcorr_neon_process_remaining
MOV r0, r5 ; r0 = _x
ADD r1, r6, r8, LSL #1 ; r1 = _y + i
VMOV.I32 q0, #0
MOVS r3, r2, LSR #2 ; r3 = j = len
BEQ inner_loop_neon_process4_done
inner_loop_neon_process4
VLD1.16 {d2},... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | 39386e0b85ec0f978aa104d312604badb9047d58 | github | media | https://github.com/xiph/opus/blob/39386e0b85ec0f978aa104d312604badb9047d58/celt/arm/celt_pitch_xcorr_arm.s | 361 | 420 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:11 | VMOV.32 r0, d0[0]
LDMFD sp!, {r4-r9, pc}
ENDP
ENDIF
IF OPUS_ARM_MAY_HAVE_EDSP
; This will get used on ARMv7 devices without NEON, so it has been optimized
; to take advantage of dual-issuing where possible.
xcorr_kernel_edsp PROC
; input:
; r3 = int len
; r4 = opus_val16 *_x
... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | 39386e0b85ec0f978aa104d312604badb9047d58 | github | media | https://github.com/xiph/opus/blob/39386e0b85ec0f978aa104d312604badb9047d58/celt/arm/celt_pitch_xcorr_arm.s | 401 | 460 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:12 | SMLATT r6, r12, r10, r6 ; sum[0] = MAC16_16(sum[0],x_1,y_1)
LDR r10, [r5], #4 ; Load y[4...5]
SMLATB r7, r12, r11, r7 ; sum[1] = MAC16_16(sum[1],x_1,y_2)
SMLATT r8, r12, r11, r8 ; sum[2] = MAC16_16(sum[2],x_1,y_3)
SMLATB r9, r12, r10, r9 ; sum[3] = MAC16_16(sum[3],x... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | 39386e0b85ec0f978aa104d312604badb9047d58 | github | media | https://github.com/xiph/opus/blob/39386e0b85ec0f978aa104d312604badb9047d58/celt/arm/celt_pitch_xcorr_arm.s | 441 | 500 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:13 | SMLABB r8, r12, r10, r8 ; sum[2] = MAC16_16(sum[2],tmp,y_4)
LDRGTH r14, [r4] ; r14 = *x
SMLABB r9, r12, r2, r9 ; sum[3] = MAC16_16(sum[3],tmp,y_5)
BLE xcorr_kernel_edsp_done
SMLABT r6, r14, r11, r6 ; sum[0] = MAC16_16(sum[0],tmp,y_3)
LDRH r11, [r5] ; r1... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | 39386e0b85ec0f978aa104d312604badb9047d58 | github | media | https://github.com/xiph/opus/blob/39386e0b85ec0f978aa104d312604badb9047d58/celt/arm/celt_pitch_xcorr_arm.s | 481 | 540 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:14 | ; xcorr_kernel_edsp parameters:
; r3 = len, r4 = _x, r5 = _y, r6...r9 = sum[4] = {0, 0, 0, 0}
MOV r6, #0
MOV r7, #0
MOV r8, #0
MOV r9, #0
BL xcorr_kernel_edsp ; xcorr_kernel_edsp(_x, _y+i, xcorr+i, len)
; maxcorr = max(maxcorr, sum0, sum1, sum2, sum3)
CMP r0... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | 39386e0b85ec0f978aa104d312604badb9047d58 | github | media | https://github.com/xiph/opus/blob/39386e0b85ec0f978aa104d312604badb9047d58/celt/arm/celt_pitch_xcorr_arm.s | 521 | 580 |
xiph/opus:celt/arm/celt_pitch_xcorr_arm.s:15 | LDRGE r8, [r5], #4
SMLATT r14, r7, r9, r14 ; sum = MAC16_16(sum, x_3, y_3)
LDRGE r7, [r4], #4
LDRGE r9, [r5], #4
BGE celt_pitch_xcorr_edsp_process_remaining_loop4
celt_pitch_xcorr_edsp_process_remaining_loop_done
ADDS r12, r12, #2
LDRGE r6, [r4], #4
LDRGE ... | arm | gas-like | handwritten | xiph/opus | celt/arm/celt_pitch_xcorr_arm.s | BSD-3-Clause | 39386e0b85ec0f978aa104d312604badb9047d58 | github | media | https://github.com/xiph/opus/blob/39386e0b85ec0f978aa104d312604badb9047d58/celt/arm/celt_pitch_xcorr_arm.s | 561 | 598 |
xiph/theora:lib/arm/armbits.s:1 | ;********************************************************************
;* *
;* THIS FILE IS PART OF THE OggTheora SOFTWARE CODEC SOURCE CODE. *
;* USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
;* GOVERNED BY A BSD-STYLE SOURCE LICENS... | arm | gas-like | handwritten | xiph/theora | lib/arm/armbits.s | BSD-3-Clause | 23161c4a63fd9f9d09b9e972f95def2d56c777af | github | media | https://github.com/xiph/theora/blob/23161c4a63fd9f9d09b9e972f95def2d56c777af/lib/arm/armbits.s | 1 | 60 |
xiph/theora:lib/arm/armbits.s:2 | ; r1 = int _bits
ADD r12,r0,#8
LDMIA r12,{r2,r3} ; r2 = window
; Stall... ; r3 = available
; Stall...
SUBS r3,r3,r1 ; r3 = available-_bits, available<_bits => LT
BLT oc_pack_read_refill
RSB r0,r1,#32 ; r0 = 32-_bits
MOV r0,r2,LSR r0 ; r0 = window>>32-_bits
MOV ... | arm | gas-like | handwritten | xiph/theora | lib/arm/armbits.s | BSD-3-Clause | 23161c4a63fd9f9d09b9e972f95def2d56c777af | github | media | https://github.com/xiph/theora/blob/23161c4a63fd9f9d09b9e972f95def2d56c777af/lib/arm/armbits.s | 41 | 100 |
xiph/theora:lib/arm/armbits.s:3 | CMPHI r3,#7 ; available<=24 => HI
LDRHIB r14,[r11],#1 ; r14 = *ptr++
SUBHI r3,#8 ; available += 8
; (HI) Stall...
ORRHI r2,r14,LSL r3 ; r2 = window|=r14<<32-available
CMPHI r10,r11 ; ptr<stop => HI
CMPHI r3,#7 ... | arm | gas-like | handwritten | xiph/theora | lib/arm/armbits.s | BSD-3-Clause | 23161c4a63fd9f9d09b9e972f95def2d56c777af | github | media | https://github.com/xiph/theora/blob/23161c4a63fd9f9d09b9e972f95def2d56c777af/lib/arm/armbits.s | 81 | 140 |
xiph/theora:lib/arm/armbits.s:4 | ENDP
oc_huff_token_decode_arm PROC
; r0 = oc_pack_buf *_b
; r1 = const ogg_int16_t *_tree
STMFD r13!,{r4,r5,r10,r14}
LDRSH r10,[r1] ; r10 = n=_tree[0]
LDMIA r0,{r2-r5} ; r2 = stop
; Stall... ; r3 = ptr
; Stall... ; r4 = window
; r5 = availabl... | arm | gas-like | handwritten | xiph/theora | lib/arm/armbits.s | BSD-3-Clause | 23161c4a63fd9f9d09b9e972f95def2d56c777af | github | media | https://github.com/xiph/theora/blob/23161c4a63fd9f9d09b9e972f95def2d56c777af/lib/arm/armbits.s | 121 | 180 |
xiph/theora:lib/arm/armbits.s:5 | CMP r10,r5 ; n>available => GT
BGT oc_huff_token_decode_refill
RSB r14,r10,#32 ; r14 = 32-n
MOV r14,r4,LSR r14 ; r14 = bits=window>>32-n
ADD r12,r12,r14 ;
LDRSH r12,[r12,r14] ; r12 = node=_tree[node+1+bits]
; Stall...
; Stall...
RSBS r14,r12,#0 ; r14 = -node, node>0 => MI... | arm | gas-like | handwritten | xiph/theora | lib/arm/armbits.s | BSD-3-Clause | 23161c4a63fd9f9d09b9e972f95def2d56c777af | github | media | https://github.com/xiph/theora/blob/23161c4a63fd9f9d09b9e972f95def2d56c777af/lib/arm/armbits.s | 161 | 220 |
xiph/theora:lib/arm/armbits.s:6 | LDRHIB r14,[r3],#1 ; r14 = *ptr++
SUBHI r5,#8 ; available += 8
; (HI) Stall...
ORRHI r4,r14,LSL r5 ; r4 = window|=r14<<32-available
CMP r2,r3 ; ptr<stop => HI
MOVLS r5,#-1<<30 ; (LS) available = OC_LOTS_OF_BITS+32
CMPHI r5,#7 ; (HI) available... | arm | gas-like | handwritten | xiph/theora | lib/arm/armbits.s | BSD-3-Clause | 23161c4a63fd9f9d09b9e972f95def2d56c777af | github | media | https://github.com/xiph/theora/blob/23161c4a63fd9f9d09b9e972f95def2d56c777af/lib/arm/armbits.s | 201 | 230 |
xiph/theora:lib/arm/armbits.s:1 | ;********************************************************************
;* *
;* THIS FILE IS PART OF THE OggTheora SOFTWARE CODEC SOURCE CODE. *
;* USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
;* GOVERNED BY A BSD-STYLE SOURCE LICENS... | arm | gas-like | handwritten | xiph/theora | lib/arm/armbits.s | BSD-3-Clause | 996200e50973a517580218c188a8f4479187f41f | github | media | https://github.com/xiph/theora/blob/996200e50973a517580218c188a8f4479187f41f/lib/arm/armbits.s | 1 | 60 |
xiph/theora:lib/arm/armbits.s:2 | ADD r12,r0,#8
LDMIA r12,{r2,r3} ; r2 = window
; Stall... ; r3 = available
; Stall...
SUBS r3,r3,r1 ; r3 = available-_bits, available<_bits => LT
BLT oc_pack_read_refill
RSB r0,r1,#32 ; r0 = 32-_bits
MOV r0,r2,LSR r0 ; r0 = window>>32-_bits
MOV r2,r2,LSL r1 ; r2 = w... | arm | gas-like | handwritten | xiph/theora | lib/arm/armbits.s | BSD-3-Clause | 996200e50973a517580218c188a8f4479187f41f | github | media | https://github.com/xiph/theora/blob/996200e50973a517580218c188a8f4479187f41f/lib/arm/armbits.s | 41 | 100 |
xiph/theora:lib/arm/armbits.s:3 | LDRHIB r14,[r11],#1 ; r14 = *ptr++
SUBHI r3,#8 ; available += 8
; (HI) Stall...
ORRHI r2,r14,LSL r3 ; r2 = window|=r14<<32-available
CMPHI r10,r11 ; ptr<stop => HI
CMPHI r3,#7 ; available<=24 => HI
LDRHIB r14,[r11],... | arm | gas-like | handwritten | xiph/theora | lib/arm/armbits.s | BSD-3-Clause | 996200e50973a517580218c188a8f4479187f41f | github | media | https://github.com/xiph/theora/blob/996200e50973a517580218c188a8f4479187f41f/lib/arm/armbits.s | 81 | 140 |
xiph/theora:lib/arm/armbits.s:4 | oc_huff_token_decode_arm PROC
; r0 = oc_pack_buf *_b
; r1 = const ogg_int16_t *_tree
STMFD r13!,{r4,r5,r10,r14}
LDRSH r10,[r1] ; r10 = n=_tree[0]
LDMIA r0,{r2-r5} ; r2 = stop
; Stall... ; r3 = ptr
; Stall... ; r4 = window
; r5 = available
CMP r... | arm | gas-like | handwritten | xiph/theora | lib/arm/armbits.s | BSD-3-Clause | 996200e50973a517580218c188a8f4479187f41f | github | media | https://github.com/xiph/theora/blob/996200e50973a517580218c188a8f4479187f41f/lib/arm/armbits.s | 121 | 180 |
xiph/theora:lib/arm/armbits.s:5 | BGT oc_huff_token_decode_refill
RSB r14,r10,#32 ; r14 = 32-n
MOV r14,r4,LSR r14 ; r14 = bits=window>>32-n
ADD r12,r12,r14 ;
LDRSH r12,[r12,r14] ; r12 = node=_tree[node+1+bits]
; Stall...
; Stall...
RSBS r14,r12,#0 ; r14 = -node, node>0 => MI
BMI oc_huff_token_decode_continue
MOV r10... | arm | gas-like | handwritten | xiph/theora | lib/arm/armbits.s | BSD-3-Clause | 996200e50973a517580218c188a8f4479187f41f | github | media | https://github.com/xiph/theora/blob/996200e50973a517580218c188a8f4479187f41f/lib/arm/armbits.s | 161 | 220 |
xiph/theora:lib/arm/armbits.s:6 | SUBHI r5,#8 ; available += 8
; (HI) Stall...
ORRHI r4,r14,LSL r5 ; r4 = window|=r14<<32-available
CMP r2,r3 ; ptr<stop => HI
MOVLS r5,#-1<<30 ; (LS) available = OC_LOTS_OF_BITS+32
CMPHI r5,#7 ; (HI) available<=24 => HI
LDRHIB r14,[r3],#1 ; (HI) r14... | arm | gas-like | handwritten | xiph/theora | lib/arm/armbits.s | BSD-3-Clause | 996200e50973a517580218c188a8f4479187f41f | github | media | https://github.com/xiph/theora/blob/996200e50973a517580218c188a8f4479187f41f/lib/arm/armbits.s | 201 | 229 |
xiph/theora:lib/arm/armbits.s:1 | ;********************************************************************
;* *
;* THIS FILE IS PART OF THE OggTheora SOFTWARE CODEC SOURCE CODE. *
;* USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
;* GOVERNED BY A BSD-STYLE SOURCE LICENS... | arm | gas-like | handwritten | xiph/theora | lib/arm/armbits.s | BSD-3-Clause | 4c44be9a6e8929ff50585d55fe0550bca8c4019f | github | media | https://github.com/xiph/theora/blob/4c44be9a6e8929ff50585d55fe0550bca8c4019f/lib/arm/armbits.s | 1 | 60 |
xiph/theora:lib/arm/armbits.s:1 | ;********************************************************************
;* *
;* THIS FILE IS PART OF THE OggTheora SOFTWARE CODEC SOURCE CODE. *
;* USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
;* GOVERNED BY A BSD-STYLE SOURCE LICENS... | arm | gas-like | handwritten | xiph/theora | lib/arm/armbits.s | BSD-3-Clause | 3ceb8c59e0ff5977a9c9db1b68f985e2e5218732 | github | media | https://github.com/xiph/theora/blob/3ceb8c59e0ff5977a9c9db1b68f985e2e5218732/lib/arm/armbits.s | 1 | 60 |
xiph/theora:lib/arm/armbits.s:2 | ; r0 = oc_pack_buf *_b
ADD r12,r0,#8
LDMIA r12,{r2,r3} ; r2 = window
; Stall... ; r3 = available
; Stall...
SUBS r3,r3,#1 ; r3 = available-1, available<1 => LT
BLT oc_pack_read1_refill
MOV r0,r2,LSR #31 ; r0 = window>>31
MOV r2,r2,LSL #1 ; r2 = window<<=1
STMIA r12,{r2,r3} ... | arm | gas-like | handwritten | xiph/theora | lib/arm/armbits.s | BSD-3-Clause | 3ceb8c59e0ff5977a9c9db1b68f985e2e5218732 | github | media | https://github.com/xiph/theora/blob/3ceb8c59e0ff5977a9c9db1b68f985e2e5218732/lib/arm/armbits.s | 41 | 100 |
xiph/theora:lib/arm/armbits.s:3 | LDRHIB r14,[r11],#1 ; r14 = *ptr++
SUBHI r3,#8 ; available += 8
; (HI) Stall...
ORRHI r2,r14,LSL r3 ; r2 = window|=r14<<32-available
CMPHI r10,r11 ; ptr<stop => HI
CMPHI r3,#7 ; available<=24 => HI
LDRHIB r14,[r11],... | arm | gas-like | handwritten | xiph/theora | lib/arm/armbits.s | BSD-3-Clause | 3ceb8c59e0ff5977a9c9db1b68f985e2e5218732 | github | media | https://github.com/xiph/theora/blob/3ceb8c59e0ff5977a9c9db1b68f985e2e5218732/lib/arm/armbits.s | 81 | 140 |
xiph/theora:lib/arm/armbits.s:4 | oc_huff_token_decode_arm
; r0 = oc_pack_buf *_b
; r1 = const ogg_int16_t *_tree
STMFD r13!,{r4,r5,r10,r14}
LDRSH r10,[r1] ; r10 = n=_tree[0]
LDMIA r0,{r2-r5} ; r2 = stop
; Stall... ; r3 = ptr
; Stall... ; r4 = window
; r5 = available
CMP r10,r5... | arm | gas-like | handwritten | xiph/theora | lib/arm/armbits.s | BSD-3-Clause | 3ceb8c59e0ff5977a9c9db1b68f985e2e5218732 | github | media | https://github.com/xiph/theora/blob/3ceb8c59e0ff5977a9c9db1b68f985e2e5218732/lib/arm/armbits.s | 121 | 180 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.