forked from xtensor-stack/xsimd
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathxsimd.hpp
More file actions
40 lines (35 loc) · 1.56 KB
/
xsimd.hpp
File metadata and controls
40 lines (35 loc) · 1.56 KB
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
/***************************************************************************
* Copyright (c) Johan Mabille, Sylvain Corlay, Wolf Vollprecht and *
* Martin Renou *
* Copyright (c) QuantStack *
* Copyright (c) Serge Guelton *
* *
* Distributed under the terms of the BSD 3-Clause License. *
* *
* The full license is in the file LICENSE, distributed with this software. *
****************************************************************************/
#ifndef XSIMD_HPP
#define XSIMD_HPP
#include "config/xsimd_config.hpp"
#include "config/xsimd_macros.hpp"
#include "arch/xsimd_scalar.hpp"
#include "memory/xsimd_aligned_allocator.hpp"
#if defined(XSIMD_NO_SUPPORTED_ARCHITECTURE)
// no type definition or anything apart from scalar definition and aligned allocator
namespace xsimd
{
template <class T, class A = void>
class batch
{
static constexpr bool supported_architecture = sizeof(A*) == 0; // type-dependant but always false
static_assert(supported_architecture, "No SIMD architecture detected, cannot instantiate a batch");
};
}
#else
#include "types/xsimd_batch.hpp"
#include "types/xsimd_batch_constant.hpp"
#include "types/xsimd_traits.hpp"
// This include must come last
#include "types/xsimd_api.hpp"
#endif
#endif