You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

85 lines
1.9 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /** @file mathop_sse2.h
  2. ** @brief mathop for sse2
  3. ** @author Andrea Vedaldi
  4. **/
  5. /*
  6. Copyright (C) 2007-12 Andrea Vedaldi and Brian Fulkerson.
  7. All rights reserved.
  8. This file is part of the VLFeat library and is made available under
  9. the terms of the BSD license (see the COPYING file).
  10. */
  11. /* ---------------------------------------------------------------- */
  12. #ifndef VL_MATHOP_SSE2_H_INSTANTIATING
  13. #ifndef VL_MATHOP_SSE2_H
  14. #define VL_MATHOP_SSE2_H
  15. #undef FLT
  16. #define FLT VL_TYPE_DOUBLE
  17. #define VL_MATHOP_SSE2_H_INSTANTIATING
  18. #include "mathop_sse2.h"
  19. #undef FLT
  20. #define FLT VL_TYPE_FLOAT
  21. #define VL_MATHOP_SSE2_H_INSTANTIATING
  22. #include "mathop_sse2.h"
  23. /* VL_MATHOP_SSE2_H */
  24. #endif
  25. /* ---------------------------------------------------------------- */
  26. /* VL_MATHOP_SSE2_H_INSTANTIATING */
  27. #else
  28. #ifndef VL_DISABLE_SSE2
  29. #include "generic.h"
  30. #include "float.th"
  31. VL_EXPORT T
  32. VL_XCAT(_vl_dot_sse2_, SFX)
  33. (vl_size dimension, T const * X, T const * Y) ;
  34. VL_EXPORT T
  35. VL_XCAT(_vl_distance_l2_sse2_, SFX)
  36. (vl_size dimension, T const * X, T const * Y) ;
  37. VL_EXPORT T
  38. VL_XCAT(_vl_distance_l1_sse2_, SFX)
  39. (vl_size dimension, T const * X, T const * Y) ;
  40. VL_EXPORT T
  41. VL_XCAT(_vl_distance_chi2_sse2_, SFX)
  42. (vl_size dimension, T const * X, T const * Y) ;
  43. VL_EXPORT T
  44. VL_XCAT(_vl_kernel_l2_sse2_, SFX)
  45. (vl_size dimension, T const * X, T const * Y) ;
  46. VL_EXPORT T
  47. VL_XCAT(_vl_kernel_l1_sse2_, SFX)
  48. (vl_size dimension, T const * X, T const * Y) ;
  49. VL_EXPORT T
  50. VL_XCAT(_vl_kernel_chi2_sse2_, SFX)
  51. (vl_size dimension, T const * X, T const * Y) ;
  52. VL_EXPORT T
  53. VL_XCAT(_vl_distance_mahalanobis_sq_sse2_, SFX)
  54. (vl_size dimension, T const * X, T const * MU, T const * S);
  55. VL_EXPORT void
  56. VL_XCAT(_vl_weighted_sigma_sse2_, SFX)
  57. (vl_size dimension, T * S, T const * X, T const * Y, T const W);
  58. VL_EXPORT void
  59. VL_XCAT(_vl_weighted_mean_sse2_, SFX)
  60. (vl_size dimension, T * MU, T const * X, T const W);
  61. /* ! VL_DISABLE_SSE2 */
  62. #endif
  63. #undef VL_MATHOP_SSE2_INSTANTIATING
  64. #endif