/[projet1]/public/pc/tools/osdk/main/SampleTweaker/main.cpp
Defence Force logotype

Diff of /public/pc/tools/osdk/main/SampleTweaker/main.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1507 by dbug, Sat Mar 17 09:36:01 2018 UTC revision 1508 by dbug, Sat Apr 13 12:01:40 2019 UTC
# Line 157  int get_value(const char *&ptr_arg,long Line 157  int get_value(const char *&ptr_arg,long
157  }  }
158    
159    
160    #if 0
161    // Actually not in use anymore...?
162    2>d:\svn\public\pc\tools\osdk\main\sampletweaker\main.cpp(170) : error C2556 : 'float log2(double)' : overloaded function differs only by return type from 'double log2(double)'
163    2>c:\program files(x86)\windows kits\10\include\10.0.10240.0\ucrt\math.h(506) : note: see declaration of 'log2'
164    2>d:\svn\public\pc\tools\osdk\main\sampletweaker\main.cpp(169) : error C2371 : 'log2' : redefinition; different basic types
165    2>c:\program files(x86)\windows kits\10\include\10.0.10240.0\ucrt\math.h(506) : note: see declaration of 'log2'
166    
167  // Calculates log2 of number.    // Calculates log2 of number.  
168  // http://www-crca.ucsd.edu/~msp/techniques/v0.08/book-html/node8.html  // http://www-crca.ucsd.edu/~msp/techniques/v0.08/book-html/node8.html
169  // http://poi.ribbon.free.fr/tmp/freq2regs.htm  // http://poi.ribbon.free.fr/tmp/freq2regs.htm
# Line 171  float log2( double n ) Line 178  float log2( double n )
178    // log(n)/log(2) is log2.      // log(n)/log(2) is log2.  
179    return (float)(log( n ) / log( 2.0 ));    return (float)(log( n ) / log( 2.0 ));
180  }  }
181    #endif
182    
183  void main(int argc,char *argv[])  void main(int argc,char *argv[])
184  {  {

Legend:
Removed from v.1507  
changed lines
  Added in v.1508

  ViewVC Help
Powered by ViewVC 1.1.26