]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Merge pull request #742 in FS/freeswitch from ~PIOTRGREGOR/freeswitch:bugfix/FS-8853...
authorMike Jerris <mike@jerris.com>
Tue, 15 Mar 2016 21:13:22 +0000 (16:13 -0500)
committerMike Jerris <mike@jerris.com>
Tue, 15 Mar 2016 21:13:22 +0000 (16:13 -0500)
* commit 'da7be641bac16dbe5575c0f266a10d1819ab0026':
  FS-8853 enable change of resolution of fast arc cos table

1  2 
src/mod/applications/mod_avmd/fast_acosf.c

index 6db0fadad4aa9e9932e2fc50d4b933e2786c59be,9710c6abc2d55292d8e3d0fc4fa42cb0d2e25d9a..48e2baf58058e0756b4c32de94c71bf70082e668
@@@ -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");