Displaying 3 results from an estimated 3 matches for "min16".
Did you mean:
win16
2013 Dec 09
1
incorrect use of MAX16
...is type-less,
but I am working on an architecture with hardware support for
min/max of 16bit. Changing the default definition to take
advantage of this hardware changes the result of that
computation.
Please consider the change below for inclusion in the opus
code base.
/* *tf_estimate = 1 + MIN16(1, sqrt(MAX16(0, tf_max-30))/20); */
- *tf_estimate = celt_sqrt(MAX16(0,
SHL32(MULT16_16(QCONST16(0.0069,14),MIN16(163,tf_max)),14)-QCONST32(0.139,28)));
+ *tf_estimate = celt_sqrt(MAX32(0,
SHL32(MULT16_16(QCONST16(0.0069,14),MIN16(163,tf_max)),14)-QCONST32(0.139,28)));
/*printf("%d...
2010 Mar 25
0
Blackfin inline assembly for fixed math
...e celt_int16 MAX16(celt_int16 a, celt_int16 b)
{
celt_int32 res;
__asm__ (
"%1 = %1.L (X);\n\t"
"%2 = %2.L (X);\n\t"
"%0 = MAX(%1,%2);"
: "=d" (res)
: "%d" (a), "d" (b)
);
return res;
}
#undef MIN16
static inline celt_int16 MIN16(celt_int16 a, celt_int16 b)
{
celt_int32 res;
__asm__ (
"%1 = %1.L (X);\n\t"
"%2 = %2.L (X);\n\t"
"%0 = MIN(%1,%2);"
: "=d" (res)
: "%d" (a), "d" (b)
);
return re...
2019 May 27
0
opus-1.3.1 patch for ARM Cortex-M4F (single precision)
...ghE[b] > tonal->lowE[b] + 7.5f)
{
if (tonal->highE[b] - logE[b] > logE[b] - tonal->lowE[b])
tonal->highE[b] -= .01f;
@@ -700,7 +700,7 @@ static void tonality_analysis(TonalityAn
L2 += tonal->E[i][b];
}
- stationarity = MIN16(0.99f,L1/(float)sqrt(1e-15+NB_FRAMES*L2));
+ stationarity = MIN16(0.99f,L1/(float)sqrt(1e-15f+NB_FRAMES*L2));
stationarity *= stationarity;
stationarity *= stationarity;
frame_stationarity += stationarity;
@@ -748,7 +748,7 @@ static void tonality_analysis(TonalityAn...