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

Commit 8f74809f authored by Ayushi Khopkar's avatar Ayushi Khopkar Committed by Anuj Joshi
Browse files

Updated 'preemph.c' and 'q_pulse.c'

On host toolchains, __unused doesnt seem to be present. Hence
updated all instances in 'q_pulse.c' to use
__attribute__((unused)) instead.

For host toolchains, stdint.h needs to be added in 'preemph.c' so
that INT32_MAX is correctly defined

Test: Build libstagefright_amrwbenc
Bug: 170360841

Change-Id: I4ad6fa070b6b4d6b016e1c47ffbc9eb1c4130390
parent e39e35ff
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@

#include "typedef.h"
#include "basic_op.h"
#include <stdint.h>

void Preemph(
        Word16 x[],                           /* (i/o)   : input signal overwritten by the output */
+2 −1
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@
#include "q_pulse.h"

#define NB_POS 16                          /* pos in track, mask for sign bit */
#define UNUSED_VAR __attribute__((unused))

Word32 quant_1p_N1(                        /* (o) return N+1 bits             */
        Word16 pos,                        /* (i) position of the pulse       */
@@ -188,7 +189,7 @@ Word32 quant_4p_4N( /* (o) return 4*N bits */
        Word16 pos[],                         /* (i) position of the pulse 1..4  */
        Word16 N)                             /* (i) number of bits for position */
{
    Word16 nb_pos, mask __unused, n_1, tmp;
    Word16 nb_pos, mask UNUSED_VAR, n_1, tmp;
    Word16 posA[4], posB[4];
    Word32 i, j, k, index;