/NeonProject/app/src/main/cpp/cvlib/cv_c_mathfun.h

https://github.com/dingjikerbo/Android-Boost · C Header · 43 lines · 20 code · 16 blank · 7 comment · 0 complexity · 206572e8957454a61c7b6bd57cdcdaf8 MD5 · raw file

  1. /*
  2. * Implementation approximate Math library in Neon and single float.
  3. * Exp Log Sin Cos is almost the same Julien Pommier's NEON implementation.
  4. * Some of the algorithms not is based on the cephes math library.
  5. *
  6. * liuyang.10 2018.06.24
  7. */
  8. #ifndef __CV_LIBRARY_C_MATHFUN_H__
  9. #define __CV_LIBRARY_C_MATHFUN_H__
  10. #include <math.h>
  11. #include "cv_math_define.h"
  12. namespace cv_maths
  13. {
  14. float logf_single(float xx);
  15. float exp_single(float x);
  16. float sinf_single(float xx);
  17. float cosf_single(float xx);
  18. float tancotf_single(float xx,int cotflg);
  19. float tanf_single(float x);
  20. float cotf_single(float x);
  21. float atanf_single(float xx);
  22. float atan2f_single(float y,float x);
  23. float exp_remez_single(float x);
  24. float inv_sqrt_single(float xx);
  25. float q_rsqrt_single(float number);
  26. }
  27. #endif