Skip to content

Commit 9404e1f

Browse files
nickkralAndroid (Google) Code Review
authored andcommitted
Merge "AudioResampler: use relative instead of absolute labels"
2 parents ff242c3 + 80754d2 commit 9404e1f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

services/audioflinger/AudioResampler.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -434,9 +434,9 @@ void AudioResamplerOrder1::AsmMono16Loop(int16_t *in, int32_t* maxOutPt, int32_t
434434

435435
// the following loop works on 2 frames
436436

437-
".Y4L01:\n"
437+
"1:\n"
438438
" cmp r8, r2\n" // curOut - maxCurOut
439-
" bcs .Y4L02\n"
439+
" bcs 2f\n"
440440

441441
#define MO_ONE_FRAME \
442442
" add r0, r1, r7, asl #1\n" /* in + inputIndex */\
@@ -460,8 +460,8 @@ void AudioResamplerOrder1::AsmMono16Loop(int16_t *in, int32_t* maxOutPt, int32_t
460460
MO_ONE_FRAME // frame 2
461461

462462
" cmp r7, r3\n" // inputIndex - maxInIdx
463-
" bcc .Y4L01\n"
464-
".Y4L02:\n"
463+
" bcc 1b\n"
464+
"2:\n"
465465

466466
" bic r6, r6, #0xC0000000\n" // phaseFraction & ...
467467
// save modified values
@@ -541,9 +541,9 @@ void AudioResamplerOrder1::AsmStereo16Loop(int16_t *in, int32_t* maxOutPt, int32
541541
// r13 sp
542542
// r14
543543

544-
".Y5L01:\n"
544+
"3:\n"
545545
" cmp r8, r2\n" // curOut - maxCurOut
546-
" bcs .Y5L02\n"
546+
" bcs 4f\n"
547547

548548
#define ST_ONE_FRAME \
549549
" bic r6, r6, #0xC0000000\n" /* phaseFraction & ... */\
@@ -577,8 +577,8 @@ void AudioResamplerOrder1::AsmStereo16Loop(int16_t *in, int32_t* maxOutPt, int32
577577
ST_ONE_FRAME // frame 1
578578

579579
" cmp r7, r3\n" // inputIndex - maxInIdx
580-
" bcc .Y5L01\n"
581-
".Y5L02:\n"
580+
" bcc 3b\n"
581+
"4:\n"
582582

583583
" bic r6, r6, #0xC0000000\n" // phaseFraction & ...
584584
// save modified values

0 commit comments

Comments
 (0)