summaryrefslogtreecommitdiffstats
path: root/vecmathlib.h
blob: 25dd285cef187f883b1f59bdc34af5c27dbfe5cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// -*-C++-*-

#ifndef VECMATHLIB_H
#define VECMATHLIB_H

#define VML_DEBUG

#undef VML_HAVE_DENORMALS
#undef VML_HAVE_INF
#undef VML_HAVE_NAN
#undef VML_HAVE_SIGNED_ZERO



#include <cassert>

#ifdef VML_DEBUG
#  define VML_ASSERT(x) assert(x)
#else
#  define VML_ASSERT(x) ((void)0)
#endif

#include "vec_pseudo.h"

#include "vec_float.h"
#if defined __SSE2__            // Intel SSE 2
#  include "vec_float_sse2.h"
#endif
#if defined __AVX__             // Intel AVX
#  include "vec_float_avx.h"
#endif

#include "vec_double.h"
#if defined __SSE2__            // Intel SSE 2
#  include "vec_double_sse2.h"
#endif
#if defined __AVX__             // Intel AVX
#  include "vec_double_avx.h"
#endif

#endif // #ifndef VECMATHLIB_H
OpenPOWER on IntegriCloud