root/include/math.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 #ifndef MATH_H
   2 #define MATH_H
   3 
   4 // CHDK floating point math functions
   5 
   6 // Note: used in modules and platform independent code. 
   7 // Do not add platform dependent stuff in here (#ifdef/#endif compile options or camera dependent values)
   8 
   9 #ifndef __VFP_FP__
  10 extern double d2d(double value);
  11 #else
  12 #define d2d(v) (v)
  13 #endif
  14 /*
  15 extern float logf(float v);
  16 extern float sqrtf(float v);
  17 extern float powf(float x, float y);
  18 extern float fabsf(float x);
  19 extern float scalbnf(float x, int n);
  20 extern float copysignf(float x, float y);
  21 */
  22 
  23 #define M_PI            3.14159265358979323846
  24 
  25 extern double log(double x);
  26 extern double log2(double x);
  27 extern double log10(double x);
  28 extern double pow(double x, double y);
  29 extern double sqrt(double x);
  30 
  31 #endif

/* [<][>][^][v][top][bottom][index][help] */