Searched defs:WORD2INT (Results 1 - 4 of 4) sorted by relevance

/external/speex/libspeex/
H A Dresample_neon.h51 #undef WORD2INT macro
52 #define WORD2INT(x) (saturate_32bit_to_16bit(x)) macro
124 #undef WORD2INT macro
125 #define WORD2INT(x) (saturate_float_to_16bit(x)) macro
H A Dmdf.c92 #define WORD2INT(x) ((x) < -32767 ? -32768 : ((x) > 32766 ? 32767 : (x))) macro
94 #define WORD2INT(x) ((x) < -32767.5f ? -32768 : ((x) > 32766.5f ? 32767 : floor(.5+(x)))) macro
984 out[i*C+chan] = WORD2INT(tmp_out);
H A Dresample.c86 #define WORD2INT(x) ((x) < -32767 ? -32768 : ((x) > 32766 ? 32767 : (x))) macro
88 #define WORD2INT(x) ((x) < -32767.5f ? -32768 : ((x) > 32766.5f ? 32767 : floor(.5+(x)))) macro
281 return WORD2INT(32768.*cutoff);
285 return WORD2INT(32768.*cutoff*sin(M_PI*xx)/(M_PI*xx) * compute_func(fabs(2.*x/N), window_func));
928 x[j+st->filt_len-1]=WORD2INT(in[j*istride_save]);
947 out[j*ostride_save] = WORD2INT(ystack[j]);
/external/chromium_org/third_party/speex/libspeex/
H A Dresample.c86 #define WORD2INT(x) ((x) < -32767 ? -32768 : ((x) > 32766 ? 32767 : (x))) macro
88 #define WORD2INT(x) ((x) < -32767.5f ? -32768 : ((x) > 32766.5f ? 32767 : floor(.5+(x)))) macro
277 return WORD2INT(32768.*cutoff);
281 return WORD2INT(32768.*cutoff*sin(M_PI*xx)/(M_PI*xx) * compute_func(fabs(2.*x/N), window_func));
918 x[j+st->filt_len-1]=WORD2INT(in[j*istride_save]);
937 out[j*ostride_save] = WORD2INT(ystack[j]);

Completed in 83 milliseconds