Debian Codegraph @

src/thirdparty/VLFeat/mathop_sse2.h

raw
1 /** @file mathop_sse2.h
2 ** @brief mathop for sse2
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_SSE2_H_INSTANTIATING
16
17 #ifndef VL_MATHOP_SSE2_H
18 #define VL_MATHOP_SSE2_H
19
20 #undef FLT
21 #define FLT VL_TYPE_DOUBLE
22 #define VL_MATHOP_SSE2_H_INSTANTIATING
23 #include "mathop_sse2.h"
24
25 #undef FLT
26 #define FLT VL_TYPE_FLOAT
27 #define VL_MATHOP_SSE2_H_INSTANTIATING
28 #include "mathop_sse2.h"
29
30 /* VL_MATHOP_SSE2_H */
31 #endif
32
33 /* ---------------------------------------------------------------- */
34 /* VL_MATHOP_SSE2_H_INSTANTIATING */
35 #else
36
37 #ifndef VL_DISABLE_SSE2
38
39 #include "generic.h"
40 #include "float.h"
41
42 VL_EXPORT T
43 VL_XCAT(_vl_dot_sse2_, SFX)
44 (vl_size dimension, T const * X, T const * Y) ;
45
46 VL_EXPORT T
47 VL_XCAT(_vl_distance_l2_sse2_, SFX)
48 (vl_size dimension, T const * X, T const * Y) ;
49
50 VL_EXPORT T
51 VL_XCAT(_vl_distance_l1_sse2_, SFX)
52 (vl_size dimension, T const * X, T const * Y) ;
53
54 VL_EXPORT T
55 VL_XCAT(_vl_distance_chi2_sse2_, SFX)
56 (vl_size dimension, T const * X, T const * Y) ;
57
58 VL_EXPORT T
59 VL_XCAT(_vl_kernel_l2_sse2_, SFX)
60 (vl_size dimension, T const * X, T const * Y) ;
61
62 VL_EXPORT T
63 VL_XCAT(_vl_kernel_l1_sse2_, SFX)
64 (vl_size dimension, T const * X, T const * Y) ;
65
66 VL_EXPORT T
67 VL_XCAT(_vl_kernel_chi2_sse2_, SFX)
68 (vl_size dimension, T const * X, T const * Y) ;
69
70 VL_EXPORT T
71 VL_XCAT(_vl_distance_mahalanobis_sq_sse2_, SFX)
72 (vl_size dimension, T const * X, T const * MU, T const * S);
73
74 VL_EXPORT void
75 VL_XCAT(_vl_weighted_sigma_sse2_, SFX)
76 (vl_size dimension, T * S, T const * X, T const * Y, T const W);
77
78 VL_EXPORT void
79 VL_XCAT(_vl_weighted_mean_sse2_, SFX)
80 (vl_size dimension, T * MU, T const * X, T const W);
81
82 /* ! VL_DISABLE_SSE2 */
83 #endif
84 #undef VL_MATHOP_SSE2_INSTANTIATING
85 #endif