Debian Codegraph @

src/thirdparty/VLFeat/mathop_avx.h

raw
1 /** @file mathop_avx.h
2 ** @brief mathop for avx
3 ** @author Andrea Vedaldi
4 **/
5
6 /*
7 Copyright (C) 2007-12 Andrea Vedaldi and Brian Fulkerson.
8 All rights reserved.
9
10 This file is part of the VLFeat library and is made available under
11 the terms of the BSD license (see the COPYING file).
12 */
13
14 /* ---------------------------------------------------------------- */
15 #ifndef VL_MATHOP_AVX_H_INSTANTIATING
16
17 #ifndef VL_MATHOP_AVX_H
18 #define VL_MATHOP_AVX_H
19
20 #undef FLT
21 #define FLT VL_TYPE_DOUBLE
22 #define VL_MATHOP_AVX_H_INSTANTIATING
23 #include "mathop_avx.h"
24
25 #undef FLT
26 #define FLT VL_TYPE_FLOAT
27 #define VL_MATHOP_AVX_H_INSTANTIATING
28 #include "mathop_avx.h"
29
30 /* VL_MATHOP_AVX_H */
31 #endif
32
33 /* ---------------------------------------------------------------- */
34 /* VL_MATHOP_AVX_H_INSTANTIATING */
35 #else
36
37 #ifndef VL_DISABLE_AVX
38 #include "generic.h"
39 #include "float.h"
40
41 VL_EXPORT T
42 VL_XCAT(_vl_distance_mahalanobis_sq_avx_, SFX)
43 (vl_size dimension, T const * X, T const * MU, T const * S);
44
45 VL_EXPORT T
46 VL_XCAT(_vl_distance_l2_avx_, SFX)
47 (vl_size dimension, T const * X, T const * Y);
48
49 VL_EXPORT void
50 VL_XCAT(_vl_weighted_sigma_avx_, SFX)
51 (vl_size dimension, T * S, T const * X, T const * Y, T const W);
52
53 VL_EXPORT void
54 VL_XCAT(_vl_weighted_mean_avx_, SFX)
55 (vl_size dimension, T * MU, T const * X, T const W);
56
57 /* ! VL_DISABLE_AVX */
58 #endif
59
60 #undef VL_MATHOP_AVX_H_INSTANTIATING
61 #endif