Displaying 6 results from an estimated 6 matches for "min32".
Did you mean:
win32
2007 Nov 05
2
[patch] speex_preprocess_ctl
...======================================
> > --- libspeex/preprocess.c (revision 13983)
> > +++ libspeex/preprocess.c (arbetskopia)
> > @@ -1126,16 +1126,16 @@
> > break;
> >
> > case SPEEX_PREPROCESS_SET_PROB_START:
> > - *(spx_int32_t*)ptr = MIN32(Q15_ONE,MAX32(0, *(spx_int32_t*)
> > ptr));
> > - st->speech_prob_start = DIV32_16(MULT16_16(32767,*
> > (spx_int32_t*)ptr), 100);
> > + *(spx_int32_t*)ptr = MIN32(100,MAX32(0, *(spx_int32_t*)ptr));
> > + st->speech_prob_start = DIV32_16(MULT16_1...
2007 Oct 29
1
[patch] speex_preprocess_ctl
...---------
Index: libspeex/preprocess.c
===================================================================
--- libspeex/preprocess.c (revision 13983)
+++ libspeex/preprocess.c (arbetskopia)
@@ -1126,16 +1126,16 @@
break;
case SPEEX_PREPROCESS_SET_PROB_START:
- *(spx_int32_t*)ptr = MIN32(Q15_ONE,MAX32(0, *(spx_int32_t*)ptr));
- st->speech_prob_start = DIV32_16(MULT16_16(32767,*(spx_int32_t*)ptr), 100);
+ *(spx_int32_t*)ptr = MIN32(100,MAX32(0, *(spx_int32_t*)ptr));
+ st->speech_prob_start = DIV32_16(MULT16_16(Q15ONE,*(spx_int32_t*)ptr), 100);
break;...
2007 Nov 05
0
[patch] speex_preprocess_ctl
...=================
>>> --- libspeex/preprocess.c (revision 13983)
>>> +++ libspeex/preprocess.c (arbetskopia)
>>> @@ -1126,16 +1126,16 @@
>>> break;
>>>
>>> case SPEEX_PREPROCESS_SET_PROB_START:
>>> - *(spx_int32_t*)ptr = MIN32(Q15_ONE,MAX32(0, *(spx_int32_t*)
>>> ptr));
>>> - st->speech_prob_start = DIV32_16(MULT16_16(32767,*
>>> (spx_int32_t*)ptr), 100);
>>> + *(spx_int32_t*)ptr = MIN32(100,MAX32(0, *(spx_int32_t*)ptr));
>>> + st->speech_prob_start = DIV3...
2018 Jun 29
1
Aborting on NaN in CELT - what are the conditions for crash in transient_analysis
...that crash on NaN since it could result in a worse issue later on. */
I think I'm exactly in that situation. Opus codec crashes occasionally for
me with Access violation in the transient_analysis function on the line
where it's computing the id from the floating point.
id = (int)MAX32(0,MIN32(127,floor(64*norm*(tmp[i]+EPSILON))));
Could you please provide more info about what could be the crash reason
there?
Regards,
Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xiph.org/pipermail/opus/attachments/20180629/db780dbb/attachment-000...
2010 Mar 25
0
Blackfin inline assembly for fixed math
...d" (a), "d" (b)
);
return res;
}
#undef MAX32
static inline celt_int32 MAX32(celt_int32 a, celt_int32 b)
{
celt_int32 res;
__asm__ (
"%0 = MAX(%1,%2);"
: "=d" (res)
: "%d" (a), "d" (b)
);
return res;
}
#undef MIN32
static inline celt_int32 MIN32(celt_int32 a, celt_int32 b)
{
celt_int32 res;
__asm__ (
"%0 = MIN(%1,%2);"
: "=d" (res)
: "%d" (a), "d" (b)
);
return res;
}
// ????
#undef MULT16_32_Q15
static inline celt_int32 MULT16_32_Q15(celt...
2011 Mar 03
1
fixed point code
...eate(celt_int32 Fs, int frame_size, int *error)
{
....
....
#ifndef FIXED_POINT
for (i=0;i<mode->overlap;i++)
window[i] = Q15ONE*sin(.5*M_PI* sin(.5*M_PI*(i+.5)/mode->overlap) * sin(.5*M_PI*(i+.5)/mode->overlap));
#else
for (i=0;i<mode->overlap;i++)
window[i] = MIN32(32767,floor(.5+32768.*sin(.5*M_PI* sin(.5*M_PI*(i+.5)/mode->overlap) * sin(.5*M_PI*(i+.5)/mode->overlap))));
#endif
.....
.....
}
[2] Usage on global stack memory
In "arch.h", there is a definition on the following constant for global processing memory (stack RAM).
#define GLOB...