Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

memcpy_tointerleave allow AUDIO_BLOCK_SAMPLES == 4 #420

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions memcpy_audio.S
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,18 @@
pkhtb r6,r8,r7,ASR #16

stmia r0!, {r3,r4,r5,r6}
pop {r4-r8,r14}
pop {r4-r8,r14}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I actually don't believe need to push & pop r14 for AUDIO_BLOCK_SAMPLES == 8 or AUDIO_BLOCK_SAMPLES == 4.

#elif AUDIO_BLOCK_SAMPLES == 4
push {r4-r6,r14}

ldmia r1!, {r5}
ldmia r2!, {r6}

pkhbt r3,r5,r6,LSL #16
pkhtb r4,r6,r5,ASR #16

stmia r0!, {r3,r4}
pop {r4-r6,r14}
#endif
BX lr

Expand Down Expand Up @@ -146,7 +157,7 @@
BX lr


/* void memcpy_tointerleaveL(short *dst, short *srcR); */
/* void memcpy_tointerleaveR(short *dst, short *srcR); */
.global memcpy_tointerleaveR
.thumb_func
memcpy_tointerleaveR:
Expand Down