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

Commit 8a6d716a authored by Chih-hung Hsieh's avatar Chih-hung Hsieh Committed by Gerrit Code Review
Browse files

Merge "Fix misc-macro-parentheses warnings."

parents 2f15fd50 183d3877
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -35,7 +35,7 @@
#define DRC_DEFAULT_MOBILE_DRC_CUT   127 /* maximum compression of dynamic range for mobile conf */
#define DRC_DEFAULT_MOBILE_DRC_BOOST 127 /* maximum compression of dynamic range for mobile conf */
#define DRC_DEFAULT_MOBILE_DRC_HEAVY 1   /* switch for heavy compression for mobile conf */
#define DRC_DEFAULT_MOBILE_ENC_LEVEL -1 /* encoder target level; -1 => the value is unknown, otherwise dB step value (e.g. 64 for -16 dB) */
#define DRC_DEFAULT_MOBILE_ENC_LEVEL (-1) /* encoder target level; -1 => the value is unknown, otherwise dB step value (e.g. 64 for -16 dB) */
#define MAX_CHANNEL_COUNT            8  /* maximum number of audio channels that can be decoded */
// names of properties that can be used to override the default DRC settings
#define PROP_DRC_OVERRIDE_REF_LEVEL  "aac_drc_reference_level"
+3 −3
Original line number Diff line number Diff line
@@ -234,10 +234,10 @@ Word16 iLog4(Word32 value)
}

#define step(shift) \
    if ((0x40000000l >> shift) + root <= value)       \
    if ((0x40000000l >> (shift)) + root <= value)       \
    {                                                 \
        value -= (0x40000000l >> shift) + root;       \
        root = (root >> 1) | (0x40000000l >> shift);  \
        value -= (0x40000000l >> (shift)) + root;       \
        root = (root >> 1) | (0x40000000l >> (shift));  \
    } else {                                          \
        root = root >> 1;                             \
    }
+2 −2
Original line number Diff line number Diff line
@@ -89,11 +89,11 @@ typedef unsigned __int64 UWord64;
#endif

#ifndef min
#define min(a,b) ( a < b ? a : b)
#define min(a,b) ( (a) < (b) ? (a) : (b))
#endif

#ifndef max
#define max(a,b) ( a > b ? a : b)
#define max(a,b) ( (a) > (b) ? (a) : (b))
#endif

#ifdef ARM_INASM
+1 −1
Original line number Diff line number Diff line
@@ -73,7 +73,7 @@ enum
#define TRANSFORM_OFFSET_LONG    0
#define TRANSFORM_OFFSET_SHORT   448

#define LOG_NORM_PCM          -15
#define LOG_NORM_PCM          (-15)

#define NUM_SAMPLE_RATES	12

+3 −3
Original line number Diff line number Diff line
@@ -23,10 +23,10 @@
#include "bit_cnt.h"
#include "aac_rom.h"

#define HI_LTAB(a) (a>>8)
#define LO_LTAB(a) (a & 0xff)
#define HI_LTAB(a) ((a)>>8)
#define LO_LTAB(a) ((a) & 0xff)

#define EXPAND(a)  ((((Word32)(a&0xff00)) << 8)|(Word32)(a&0xff))
#define EXPAND(a)  ((((Word32)((a)&0xff00)) << 8)|(Word32)((a)&0xff))


/*****************************************************************************
Loading