mirror of
https://github.com/xiph/opus.git
synced 2025-05-25 20:59:13 +00:00
Replace "inline" with OPUS_INLINE.
Newer versions of MSVC are unhappy with the strategy of the build environment redefining "inline" (even though they don't support the actual keyword). Instead we define OPUS_INLINE to the right thing in opus_defines.h. This is the same approach we use for restrict.
This commit is contained in:
parent
2891d852a3
commit
7830cf1bd2
65 changed files with 361 additions and 335 deletions
|
@ -33,7 +33,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
|||
|
||||
/* shell coder; pulse-subframe length is hardcoded */
|
||||
|
||||
static inline void combine_pulses(
|
||||
static OPUS_INLINE void combine_pulses(
|
||||
opus_int *out, /* O combined pulses vector [len] */
|
||||
const opus_int *in, /* I input vector [2 * len] */
|
||||
const opus_int len /* I number of OUTPUT samples */
|
||||
|
@ -45,7 +45,7 @@ static inline void combine_pulses(
|
|||
}
|
||||
}
|
||||
|
||||
static inline void encode_split(
|
||||
static OPUS_INLINE void encode_split(
|
||||
ec_enc *psRangeEnc, /* I/O compressor data structure */
|
||||
const opus_int p_child1, /* I pulse amplitude of first child subframe */
|
||||
const opus_int p, /* I pulse amplitude of current subframe */
|
||||
|
@ -57,7 +57,7 @@ static inline void encode_split(
|
|||
}
|
||||
}
|
||||
|
||||
static inline void decode_split(
|
||||
static OPUS_INLINE void decode_split(
|
||||
opus_int *p_child1, /* O pulse amplitude of first child subframe */
|
||||
opus_int *p_child2, /* O pulse amplitude of second child subframe */
|
||||
ec_dec *psRangeDec, /* I/O Compressor data structure */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue