LevelS SHT library
3.50
libsharp
sharp_vecutil.h
Go to the documentation of this file.
1
/*
2
* This file is part of libc_utils.
3
*
4
* libc_utils is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; either version 2 of the License, or
7
* (at your option) any later version.
8
*
9
* libc_utils is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with libc_utils; if not, write to the Free Software
16
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17
*/
18
19
/*
20
* libc_utils is being developed at the Max-Planck-Institut fuer Astrophysik
21
* and financially supported by the Deutsches Zentrum fuer Luft- und Raumfahrt
22
* (DLR).
23
*/
24
25
/*! \file sharp_vecutil.h
26
* Functionality related to vector instruction support
27
*
28
* Copyright (C) 2012,2013 Max-Planck-Society
29
* \author Martin Reinecke
30
*/
31
32
#ifndef SHARP_VECUTIL_H
33
#define SHARP_VECUTIL_H
34
35
#ifndef VLEN
36
37
#if (defined (__MIC__))
38
#define VLEN 8
39
#elif (defined (__AVX__))
40
#define VLEN 4
41
#elif (defined (__SSE2__))
42
#define VLEN 2
43
#else
44
#define VLEN 1
45
#endif
46
47
#endif
48
49
#ifndef USE_FMA4
50
#ifdef __FMA4__
51
#define USE_FMA4 1
52
#else
53
#define USE_FMA4 0
54
#endif
55
#endif
56
57
#endif
Generated on Mon Dec 10 2018 10:24:20 for LevelS SHT library