simdjson 4.2.3
Ridiculously Fast JSON
Loading...
Searching...
No Matches
instruction_set.h
1/* From
2https://github.com/endorno/pytorch/blob/master/torch/lib/TH/generic/simd/simd.h
3Highly modified.
4
5Copyright (c) 2016- Facebook, Inc (Adam Paszke)
6Copyright (c) 2014- Facebook, Inc (Soumith Chintala)
7Copyright (c) 2011-2014 Idiap Research Institute (Ronan Collobert)
8Copyright (c) 2012-2014 Deepmind Technologies (Koray Kavukcuoglu)
9Copyright (c) 2011-2012 NEC Laboratories America (Koray Kavukcuoglu)
10Copyright (c) 2011-2013 NYU (Clement Farabet)
11Copyright (c) 2006-2010 NEC Laboratories America (Ronan Collobert, Leon Bottou,
12Iain Melvin, Jason Weston) Copyright (c) 2006 Idiap Research Institute
13(Samy Bengio) Copyright (c) 2001-2004 Idiap Research Institute (Ronan Collobert,
14Samy Bengio, Johnny Mariethoz)
15
16All rights reserved.
17
18Redistribution and use in source and binary forms, with or without
19modification, are permitted provided that the following conditions are met:
20
211. Redistributions of source code must retain the above copyright
22 notice, this list of conditions and the following disclaimer.
23
242. Redistributions in binary form must reproduce the above copyright
25 notice, this list of conditions and the following disclaimer in the
26 documentation and/or other materials provided with the distribution.
27
283. Neither the names of Facebook, Deepmind Technologies, NYU, NEC Laboratories
29America and IDIAP Research Institute nor the names of its contributors may be
30 used to endorse or promote products derived from this software without
31 specific prior written permission.
32
33THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
34AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
35IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
36ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
37LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
38CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
39SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
40INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
41CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
42ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
43POSSIBILITY OF SUCH DAMAGE.
44*/
45
46#ifndef SIMDJSON_INTERNAL_INSTRUCTION_SET_H
47#define SIMDJSON_INTERNAL_INSTRUCTION_SET_H
48
49namespace simdjson {
50namespace internal {
51
52enum instruction_set {
53 DEFAULT = 0x0,
54 NEON = 0x1,
55 AVX2 = 0x4,
56 SSE42 = 0x8,
57 PCLMULQDQ = 0x10,
58 BMI1 = 0x20,
59 BMI2 = 0x40,
60 ALTIVEC = 0x80,
61 AVX512F = 0x100,
62 AVX512DQ = 0x200,
63 AVX512IFMA = 0x400,
64 AVX512PF = 0x800,
65 AVX512ER = 0x1000,
66 AVX512CD = 0x2000,
67 AVX512BW = 0x4000,
68 AVX512VL = 0x8000,
69 AVX512VBMI2 = 0x10000,
70 LSX = 0x20000,
71 LASX = 0x40000,
72};
73
74} // namespace internal
75} // namespace simdjson
76
77#endif // SIMDJSON_INTERNAL_INSTRUCTION_SET_H
The top level simdjson namespace, containing everything the library provides.
Definition base.h:8