From: Mike Jerris Date: Tue, 15 Mar 2016 21:13:22 +0000 (-0500) Subject: Merge pull request #742 in FS/freeswitch from ~PIOTRGREGOR/freeswitch:bugfix/FS-8853... X-Git-Tag: v1.6.7^2~97 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=000fdbd2d889dc0fb6d8de8537f749464e10b3c7;p=thirdparty%2Ffreeswitch.git Merge pull request #742 in FS/freeswitch from ~PIOTRGREGOR/freeswitch:bugfix/FS-8853-enable-change-of-resolution-and-size-2 to master * commit 'da7be641bac16dbe5575c0f266a10d1819ab0026': FS-8853 enable change of resolution of fast arc cos table --- 000fdbd2d889dc0fb6d8de8537f749464e10b3c7 diff --cc src/mod/applications/mod_avmd/fast_acosf.c index 6db0fadad4,9710c6abc2..48e2baf580 --- a/src/mod/applications/mod_avmd/fast_acosf.c +++ b/src/mod/applications/mod_avmd/fast_acosf.c @@@ -47,23 -71,27 +73,27 @@@ static float float_from_index(uint32_t static float *acos_table = NULL; static int acos_fd = -1; + #ifdef FAST_ACOSF_TESTING - static float strip_float(float f) - { - float_conv_t d; - d.i = d.i & (VARIA_DATA_MASK | CONST_DATA_MASK); + #define INF(x) printf("[%s] [%u]\n", #x, x) + #define INFX(x) printf("[%s] [%08x]\n", #x, x) + + static void + debug_print(void); + + static void + dump_table_summary(void); + + #endif /* FAST_ACOSF_TESTING */ - return d.i; - } - #endif -extern void compute_table(void) +extern int compute_table(void) { uint32_t i; - float f; - FILE *acos_table_file; - size_t ret; + float f; + FILE *acos_table_file; + size_t res; acos_table_file = fopen(ACOS_TABLE_FILENAME, "w");