ROOT  6.06/09
Reference Guide
sorthelper.h
Go to the documentation of this file.
1 /* This file is part of the Vc library.
2 
3  Copyright (C) 2011 Matthias Kretz <kretz@kde.org>
4 
5  Vc is free software: you can redistribute it and/or modify
6  it under the terms of the GNU Lesser General Public License as
7  published by the Free Software Foundation, either version 3 of
8  the License, or (at your option) any later version.
9 
10  Vc is distributed in the hope that it will be useful, but
11  WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public
16  License along with Vc. If not, see <http://www.gnu.org/licenses/>.
17 
18 */
19 
20 #ifndef VC_AVX_SORTHELPER_H
21 #define VC_AVX_SORTHELPER_H
22 
23 #include "types.h"
24 
25 namespace ROOT {
26 namespace Vc
27 {
28 namespace AVX
29 {
30 template<typename T> struct SortHelper
31 {
33 #ifdef VC_PASSING_VECTOR_BY_VALUE_IS_BROKEN
34  typedef const VectorType & VTArg;
35 #else
36  typedef const VectorType VTArg;
37 #endif
38  static VectorType sort(VTArg);
39  static void sort(VectorType &, VectorType &);
40 };
41 } // namespace AVX
42 } // namespace Vc
43 } // namespace ROOT
44 
45 #endif // VC_AVX_SORTHELPER_H
static VectorType sort(VTArg)
Namespace for new ROOT classes and functions.
Definition: ROOT.py:1
VectorTypeHelper< T >::Type VectorType
Definition: sorthelper.h:32
const VectorType VTArg
Definition: sorthelper.h:36
#define AVX
Definition: global.h:90
Definition: casts.h:28