Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9145202c authored by Andy Hung's avatar Andy Hung
Browse files

AudioResampler: Workaround for Clang assembly bug

Used to work on M with gcc.

Test: Native audioresampler tests on Pixel XL disabling NEON
Bug: 34110890
Change-Id: Ibaaaf9ed833a37a9017a3217d31cb5ced6fa2c82
parent 51157baa
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -119,7 +119,7 @@ int32_t mulAdd(int32_t in, int32_t v, int32_t a)
static inline
int32_t mulAddRL(int left, uint32_t inRL, int16_t v, int32_t a)
{
#if USE_INLINE_ASSEMBLY
#if 0 // USE_INLINE_ASSEMBLY Seems to fail with Clang b/34110890
    int32_t out;
    if (left) {
        asm( "smlabb %[out], %[v], %[inRL], %[a] \n"
@@ -142,7 +142,7 @@ int32_t mulAddRL(int left, uint32_t inRL, int16_t v, int32_t a)
static inline
int32_t mulAddRL(int left, uint32_t inRL, int32_t v, int32_t a)
{
#if USE_INLINE_ASSEMBLY
#if 0 // USE_INLINE_ASSEMBLY Seems to fail with Clang b/34110890
    int32_t out;
    if (left) {
        asm( "smlawb %[out], %[v], %[inRL], %[a] \n"