mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-05 02:02:01 +00:00
add assert macro to silence msvc code analysis.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7652 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
e4cefcd14d
commit
f1de784d11
libs/voipcodecs/src
@ -355,12 +355,12 @@ void gsm0610_long_term_predictor(gsm0610_state_t *s,
|
|||||||
int16_t *Nc,
|
int16_t *Nc,
|
||||||
int16_t *bc)
|
int16_t *bc)
|
||||||
{
|
{
|
||||||
assert(d);
|
vc_assert(d);
|
||||||
assert(dp);
|
vc_assert(dp);
|
||||||
assert(e);
|
vc_assert(e);
|
||||||
assert(dpp);
|
vc_assert(dpp);
|
||||||
assert(Nc);
|
vc_assert(Nc);
|
||||||
assert(bc);
|
vc_assert(bc);
|
||||||
|
|
||||||
*bc = evaluate_ltp_parameters(d, dp, Nc);
|
*bc = evaluate_ltp_parameters(d, dp, Nc);
|
||||||
long_term_analysis_filtering(*bc, *Nc, dp, d, dpp, e);
|
long_term_analysis_filtering(*bc, *Nc, dp, d, dpp, e);
|
||||||
|
@ -433,7 +433,7 @@ static void apcm_inverse_quantization(int16_t xMc[13],
|
|||||||
samples to obtain the xMp[0..12] array. Table 4.6 is used to get
|
samples to obtain the xMp[0..12] array. Table 4.6 is used to get
|
||||||
the mantissa of xmaxc (FAC[0..7]).
|
the mantissa of xmaxc (FAC[0..7]).
|
||||||
*/
|
*/
|
||||||
assert(mant >= 0 && mant <= 7);
|
vc_assert(mant >= 0 && mant <= 7);
|
||||||
|
|
||||||
temp1 = gsm_FAC[mant]; /* See 4.2-15 for mant */
|
temp1 = gsm_FAC[mant]; /* See 4.2-15 for mant */
|
||||||
temp2 = gsm_sub(6, exp); /* See 4.2-15 for exp */
|
temp2 = gsm_sub(6, exp); /* See 4.2-15 for exp */
|
||||||
|
@ -54,6 +54,12 @@ typedef int (span_tx_handler_t)(void *s, int16_t amp[], int max_len);
|
|||||||
#if !defined(TRUE)
|
#if !defined(TRUE)
|
||||||
#define TRUE (!FALSE)
|
#define TRUE (!FALSE)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if (_MSC_VER >= 1400) // VC8+
|
||||||
|
#define vc_assert(expr) assert(expr);__analysis_assume( expr )
|
||||||
|
#else
|
||||||
|
#define vc_assert(expr) assert(expr)
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(__cplusplus)
|
#if defined(__cplusplus)
|
||||||
/* C++ doesn't seem to have sane rounding functions/macros yet */
|
/* C++ doesn't seem to have sane rounding functions/macros yet */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user