simdjson
3.11.0
Ridiculously Fast JSON
instruction_set.h
1
/* From
2
https://github.com/endorno/pytorch/blob/master/torch/lib/TH/generic/simd/simd.h
3
Highly modified.
4
5
Copyright (c) 2016- Facebook, Inc (Adam Paszke)
6
Copyright (c) 2014- Facebook, Inc (Soumith Chintala)
7
Copyright (c) 2011-2014 Idiap Research Institute (Ronan Collobert)
8
Copyright (c) 2012-2014 Deepmind Technologies (Koray Kavukcuoglu)
9
Copyright (c) 2011-2012 NEC Laboratories America (Koray Kavukcuoglu)
10
Copyright (c) 2011-2013 NYU (Clement Farabet)
11
Copyright (c) 2006-2010 NEC Laboratories America (Ronan Collobert, Leon Bottou,
12
Iain Melvin, Jason Weston) Copyright (c) 2006 Idiap Research Institute
13
(Samy Bengio) Copyright (c) 2001-2004 Idiap Research Institute (Ronan Collobert,
14
Samy Bengio, Johnny Mariethoz)
15
16
All rights reserved.
17
18
Redistribution and use in source and binary forms, with or without
19
modification, are permitted provided that the following conditions are met:
20
21
1. Redistributions of source code must retain the above copyright
22
notice, this list of conditions and the following disclaimer.
23
24
2. 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
28
3. Neither the names of Facebook, Deepmind Technologies, NYU, NEC Laboratories
29
America 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
33
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
34
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
35
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
36
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
37
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
38
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
39
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
40
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
41
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
42
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
43
POSSIBILITY OF SUCH DAMAGE.
44
*/
45
46
#ifndef SIMDJSON_INTERNAL_INSTRUCTION_SET_H
47
#define SIMDJSON_INTERNAL_INSTRUCTION_SET_H
48
49
namespace
simdjson
{
50
namespace
internal {
51
52
enum
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
simdjson
The top level simdjson namespace, containing everything the library provides.
Definition:
base.h:8
include
simdjson
internal
instruction_set.h
Generated by
1.9.1