MessagePack for C
include
msgpack
predef
hardware
simd
arm.h
Go to the documentation of this file.
1
/*
2
Copyright Charly Chevalier 2015
3
Copyright Joel Falcou 2015
4
Distributed under the Boost Software License, Version 1.0.
5
(See accompanying file LICENSE_1_0.txt or copy at
6
http://www.boost.org/LICENSE_1_0.txt)
7
*/
8
9
#ifndef MSGPACK_PREDEF_HARDWARE_SIMD_ARM_H
10
#define MSGPACK_PREDEF_HARDWARE_SIMD_ARM_H
11
12
#include <
msgpack/predef/version_number.h
>
13
#include <
msgpack/predef/hardware/simd/arm/versions.h
>
14
15
/*`
16
[heading `MSGPACK_HW_SIMD_ARM`]
17
18
The SIMD extension for ARM (*if detected*).
19
Version number depends on the most recent detected extension.
20
21
[table
22
[[__predef_symbol__] [__predef_version__]]
23
24
[[`__ARM_NEON__`] [__predef_detection__]]
25
[[`__aarch64__`] [__predef_detection__]]
26
[[`_M_ARM`] [__predef_detection__]]
27
]
28
29
[table
30
[[__predef_symbol__] [__predef_version__]]
31
32
[[`__ARM_NEON__`] [MSGPACK_HW_SIMD_ARM_NEON_VERSION]]
33
[[`__aarch64__`] [MSGPACK_HW_SIMD_ARM_NEON_VERSION]]
34
[[`_M_ARM`] [MSGPACK_HW_SIMD_ARM_NEON_VERSION]]
35
]
36
37
*/
38
39
#define MSGPACK_HW_SIMD_ARM MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
40
41
#undef MSGPACK_HW_SIMD_ARM
42
#if !defined(MSGPACK_HW_SIMD_ARM) && (defined(__ARM_NEON__) || defined(__aarch64__) || defined (_M_ARM))
43
# define MSGPACK_HW_SIMD_ARM MSGPACK_HW_SIMD_ARM_NEON_VERSION
44
#endif
45
46
#if !defined(MSGPACK_HW_SIMD_ARM)
47
# define MSGPACK_HW_SIMD_ARM MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
48
#else
49
# define MSGPACK_HW_SIMD_ARM_AVAILABLE
50
#endif
51
52
#define MSGPACK_HW_SIMD_ARM_NAME "ARM SIMD"
53
54
#endif
55
56
#include <
msgpack/predef/detail/test.h
>
57
MSGPACK_PREDEF_DECLARE_TEST
(
MSGPACK_HW_SIMD_ARM
,
MSGPACK_HW_SIMD_ARM_NAME
)
version_number.h
test.h
MSGPACK_HW_SIMD_ARM
#define MSGPACK_HW_SIMD_ARM
Definition:
arm.h:47
versions.h
MSGPACK_PREDEF_DECLARE_TEST
#define MSGPACK_PREDEF_DECLARE_TEST(x, s)
Definition:
test.h:13
MSGPACK_HW_SIMD_ARM_NAME
#define MSGPACK_HW_SIMD_ARM_NAME
Definition:
arm.h:52
Generated by
1.8.17