summaryrefslogtreecommitdiff
path: root/src/libxineadec/gsm610/lpc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libxineadec/gsm610/lpc.c')
-rw-r--r--src/libxineadec/gsm610/lpc.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/libxineadec/gsm610/lpc.c b/src/libxineadec/gsm610/lpc.c
index 461f0b70f..0f51fa55f 100644
--- a/src/libxineadec/gsm610/lpc.c
+++ b/src/libxineadec/gsm610/lpc.c
@@ -4,7 +4,7 @@
* details. THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE.
*/
-/* $Header: /nfshome/cvs/xine-lib/src/libxineadec/gsm610/lpc.c,v 1.2 2003/02/28 02:51:50 storri Exp $ */
+/* $Header: /nfshome/cvs/xine-lib/src/libxineadec/gsm610/lpc.c,v 1.3 2003/12/07 15:34:30 f1rmb Exp $ */
#include <stdio.h>
#include "xineutils.h"
@@ -54,7 +54,7 @@ static void Autocorrelation P2((s, L_ACF),
*/
if (smax == 0) scalauto = 0;
else {
- XINE_ASSERT(smax > 0, "Scale maximum (smax) is not greater than 0: %d", smax);
+ _x_assert(smax > 0);
scalauto = 4 - gsm_norm( (longword)smax << 16 );/* sub(4,..) */
}
@@ -139,7 +139,7 @@ static void Autocorrelation P2((s, L_ACF),
/* Rescaling of the array s[0..159]
*/
if (scalauto > 0) {
- XINE_ASSERT(scalauto <= 4, "scalauto is not <= 4: %d", scalauto);
+ _x_assert(scalauto <= 4);
for (k = 160; k--; *s++ <<= scalauto) ;
}
}
@@ -194,10 +194,10 @@ static void Reflection_coefficients P2( (L_ACF, r),
return;
}
- XINE_ASSERT( L_ACF[0] != 0 , "L_ACF[0] is NULL");
+ _x_assert( L_ACF[0] != 0 );
temp = gsm_norm( L_ACF[0] );
- XINE_ASSERT(temp >= 0 && temp < 32, "temp is not within range 0 to 32: %d", temp);
+ _x_assert(temp >= 0 && temp < 32);
/* ? overflow ? */
for (i = 0; i <= 8; i++) ACF[i] = SASR( L_ACF[i] << temp, 16 );
@@ -221,11 +221,11 @@ static void Reflection_coefficients P2( (L_ACF, r),
*r = gsm_div( temp, P[0] );
- XINE_ASSERT(*r >= 0, "value 'r' is not >= 0: %d", *r);
+ _x_assert(*r >= 0);
if (P[1] > 0) *r = -*r; /* r[n] = sub(0, r[n]) */
- XINE_ASSERT (*r != MIN_WORD, "value 'r' is equal to MIN_WORD: %d", *r);
+ _x_assert(*r != MIN_WORD);
if (n == 8) return;
@@ -268,15 +268,15 @@ static void Transformation_to_Log_Area_Ratios P1((r),
temp = *r;
temp = GSM_ABS(temp);
- XINE_ASSERT(temp >= 0, "value 'temp' is not >= 0: %d", temp);
+ _x_assert(temp >= 0);
if (temp < 22118) {
temp >>= 1;
} else if (temp < 31130) {
- XINE_ASSERT(temp >= 11059, "value 'temp' is not >= 11059: %d", temp);
+ _x_assert(temp >= 11059);
temp -= 11059;
} else {
- XINE_ASSERT(temp >= 26112, "value 'temp' is not >= 26112: %d", temp);
+ _x_assert(temp >= 26112);
temp -= 26112;
temp <<= 2;
}
@@ -287,7 +287,7 @@ static void Transformation_to_Log_Area_Ratios P1((r),
else {
*r = temp;
}
- XINE_ASSERT (*r != MIN_WORD, "value 'r' is equal to MIN_WORD: %d", *r);
+ _x_assert(*r != MIN_WORD);
}
}