minimap2 0.2.25.1 → 0.2.26.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -0
- data/ext/Rakefile +2 -2
- data/ext/minimap2/NEWS.md +9 -0
- data/ext/minimap2/README.md +2 -2
- data/ext/minimap2/cookbook.md +2 -2
- data/ext/minimap2/minimap.h +1 -1
- data/ext/minimap2/minimap2.1 +1 -1
- data/ext/minimap2/misc/paftools.js +1 -1
- data/ext/minimap2/python/mappy.pyx +1 -1
- data/ext/minimap2/setup.py +22 -32
- data/lib/minimap2/version.rb +1 -1
- metadata +1 -97
- data/ext/minimap2/lib/simde/CONTRIBUTING.md +0 -114
- data/ext/minimap2/lib/simde/COPYING +0 -20
- data/ext/minimap2/lib/simde/README.md +0 -333
- data/ext/minimap2/lib/simde/amalgamate.py +0 -58
- data/ext/minimap2/lib/simde/meson.build +0 -33
- data/ext/minimap2/lib/simde/netlify.toml +0 -20
- data/ext/minimap2/lib/simde/simde/arm/neon/float32x2.h +0 -140
- data/ext/minimap2/lib/simde/simde/arm/neon/float32x4.h +0 -137
- data/ext/minimap2/lib/simde/simde/arm/neon/float64x1.h +0 -142
- data/ext/minimap2/lib/simde/simde/arm/neon/float64x2.h +0 -145
- data/ext/minimap2/lib/simde/simde/arm/neon/int16x4.h +0 -140
- data/ext/minimap2/lib/simde/simde/arm/neon/int16x8.h +0 -145
- data/ext/minimap2/lib/simde/simde/arm/neon/int32x2.h +0 -140
- data/ext/minimap2/lib/simde/simde/arm/neon/int32x4.h +0 -143
- data/ext/minimap2/lib/simde/simde/arm/neon/int64x1.h +0 -137
- data/ext/minimap2/lib/simde/simde/arm/neon/int64x2.h +0 -141
- data/ext/minimap2/lib/simde/simde/arm/neon/int8x16.h +0 -147
- data/ext/minimap2/lib/simde/simde/arm/neon/int8x8.h +0 -141
- data/ext/minimap2/lib/simde/simde/arm/neon/uint16x4.h +0 -134
- data/ext/minimap2/lib/simde/simde/arm/neon/uint16x8.h +0 -138
- data/ext/minimap2/lib/simde/simde/arm/neon/uint32x2.h +0 -134
- data/ext/minimap2/lib/simde/simde/arm/neon/uint32x4.h +0 -137
- data/ext/minimap2/lib/simde/simde/arm/neon/uint64x1.h +0 -131
- data/ext/minimap2/lib/simde/simde/arm/neon/uint64x2.h +0 -135
- data/ext/minimap2/lib/simde/simde/arm/neon/uint8x16.h +0 -141
- data/ext/minimap2/lib/simde/simde/arm/neon/uint8x8.h +0 -135
- data/ext/minimap2/lib/simde/simde/arm/neon.h +0 -97
- data/ext/minimap2/lib/simde/simde/check.h +0 -267
- data/ext/minimap2/lib/simde/simde/debug-trap.h +0 -83
- data/ext/minimap2/lib/simde/simde/hedley.h +0 -1899
- data/ext/minimap2/lib/simde/simde/simde-arch.h +0 -445
- data/ext/minimap2/lib/simde/simde/simde-common.h +0 -697
- data/ext/minimap2/lib/simde/simde/x86/avx.h +0 -5385
- data/ext/minimap2/lib/simde/simde/x86/avx2.h +0 -2402
- data/ext/minimap2/lib/simde/simde/x86/avx512bw.h +0 -391
- data/ext/minimap2/lib/simde/simde/x86/avx512f.h +0 -3389
- data/ext/minimap2/lib/simde/simde/x86/avx512vl.h +0 -112
- data/ext/minimap2/lib/simde/simde/x86/fma.h +0 -659
- data/ext/minimap2/lib/simde/simde/x86/mmx.h +0 -2210
- data/ext/minimap2/lib/simde/simde/x86/sse.h +0 -3696
- data/ext/minimap2/lib/simde/simde/x86/sse2.h +0 -5991
- data/ext/minimap2/lib/simde/simde/x86/sse3.h +0 -343
- data/ext/minimap2/lib/simde/simde/x86/sse4.1.h +0 -1783
- data/ext/minimap2/lib/simde/simde/x86/sse4.2.h +0 -105
- data/ext/minimap2/lib/simde/simde/x86/ssse3.h +0 -1053
- data/ext/minimap2/lib/simde/simde/x86/svml.h +0 -543
- data/ext/minimap2/lib/simde/test/CMakeLists.txt +0 -166
- data/ext/minimap2/lib/simde/test/arm/meson.build +0 -4
- data/ext/minimap2/lib/simde/test/arm/neon/meson.build +0 -23
- data/ext/minimap2/lib/simde/test/arm/neon/skel.c +0 -871
- data/ext/minimap2/lib/simde/test/arm/neon/test-neon-internal.h +0 -134
- data/ext/minimap2/lib/simde/test/arm/neon/test-neon.c +0 -39
- data/ext/minimap2/lib/simde/test/arm/neon/test-neon.h +0 -10
- data/ext/minimap2/lib/simde/test/arm/neon/vadd.c +0 -1260
- data/ext/minimap2/lib/simde/test/arm/neon/vdup_n.c +0 -873
- data/ext/minimap2/lib/simde/test/arm/neon/vmul.c +0 -1084
- data/ext/minimap2/lib/simde/test/arm/neon/vsub.c +0 -1260
- data/ext/minimap2/lib/simde/test/arm/test-arm-internal.h +0 -18
- data/ext/minimap2/lib/simde/test/arm/test-arm.c +0 -20
- data/ext/minimap2/lib/simde/test/arm/test-arm.h +0 -8
- data/ext/minimap2/lib/simde/test/cmake/AddCompilerFlags.cmake +0 -171
- data/ext/minimap2/lib/simde/test/cmake/ExtraWarningFlags.cmake +0 -68
- data/ext/minimap2/lib/simde/test/meson.build +0 -64
- data/ext/minimap2/lib/simde/test/munit/COPYING +0 -21
- data/ext/minimap2/lib/simde/test/munit/Makefile +0 -55
- data/ext/minimap2/lib/simde/test/munit/README.md +0 -54
- data/ext/minimap2/lib/simde/test/munit/example.c +0 -351
- data/ext/minimap2/lib/simde/test/munit/meson.build +0 -37
- data/ext/minimap2/lib/simde/test/munit/munit.c +0 -2055
- data/ext/minimap2/lib/simde/test/munit/munit.h +0 -535
- data/ext/minimap2/lib/simde/test/run-tests.c +0 -20
- data/ext/minimap2/lib/simde/test/run-tests.h +0 -260
- data/ext/minimap2/lib/simde/test/x86/avx.c +0 -13752
- data/ext/minimap2/lib/simde/test/x86/avx2.c +0 -9977
- data/ext/minimap2/lib/simde/test/x86/avx512bw.c +0 -2664
- data/ext/minimap2/lib/simde/test/x86/avx512f.c +0 -10416
- data/ext/minimap2/lib/simde/test/x86/avx512vl.c +0 -210
- data/ext/minimap2/lib/simde/test/x86/fma.c +0 -2557
- data/ext/minimap2/lib/simde/test/x86/meson.build +0 -33
- data/ext/minimap2/lib/simde/test/x86/mmx.c +0 -2878
- data/ext/minimap2/lib/simde/test/x86/skel.c +0 -2984
- data/ext/minimap2/lib/simde/test/x86/sse.c +0 -5121
- data/ext/minimap2/lib/simde/test/x86/sse2.c +0 -9860
- data/ext/minimap2/lib/simde/test/x86/sse3.c +0 -486
- data/ext/minimap2/lib/simde/test/x86/sse4.1.c +0 -3446
- data/ext/minimap2/lib/simde/test/x86/sse4.2.c +0 -101
- data/ext/minimap2/lib/simde/test/x86/ssse3.c +0 -2084
- data/ext/minimap2/lib/simde/test/x86/svml.c +0 -1545
- data/ext/minimap2/lib/simde/test/x86/test-avx.h +0 -16
- data/ext/minimap2/lib/simde/test/x86/test-avx512.h +0 -25
- data/ext/minimap2/lib/simde/test/x86/test-mmx.h +0 -13
- data/ext/minimap2/lib/simde/test/x86/test-sse.h +0 -13
- data/ext/minimap2/lib/simde/test/x86/test-sse2.h +0 -13
- data/ext/minimap2/lib/simde/test/x86/test-x86-internal.h +0 -196
- data/ext/minimap2/lib/simde/test/x86/test-x86.c +0 -48
- data/ext/minimap2/lib/simde/test/x86/test-x86.h +0 -8
@@ -1,141 +0,0 @@
|
|
1
|
-
/* Copyright (c) 2018-2019 Evan Nemerson <evan@nemerson.com>
|
2
|
-
*
|
3
|
-
* Permission is hereby granted, free of charge, to any person
|
4
|
-
* obtaining a copy of this software and associated documentation
|
5
|
-
* files (the "Software"), to deal in the Software without
|
6
|
-
* restriction, including without limitation the rights to use, copy,
|
7
|
-
* modify, merge, publish, distribute, sublicense, and/or sell copies
|
8
|
-
* of the Software, and to permit persons to whom the Software is
|
9
|
-
* furnished to do so, subject to the following conditions:
|
10
|
-
*
|
11
|
-
* The above copyright notice and this permission notice shall be
|
12
|
-
* included in all copies or substantial portions of the Software.
|
13
|
-
*
|
14
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
-
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
-
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
-
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
|
18
|
-
* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
19
|
-
* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
20
|
-
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
-
* SOFTWARE.
|
22
|
-
*/
|
23
|
-
|
24
|
-
#if !defined(SIMDE__INSIDE_NEON_H)
|
25
|
-
# error Do not include simde/arm/neon/int8x8.h directly; use simde/arm/neon.h.
|
26
|
-
#endif
|
27
|
-
|
28
|
-
#if !defined(SIMDE__NEON_INT8X8_H)
|
29
|
-
#define SIMDE__NEON_INT8X8_H
|
30
|
-
|
31
|
-
typedef union {
|
32
|
-
#if defined(SIMDE_VECTOR_SUBSCRIPT)
|
33
|
-
int8_t i8 SIMDE_VECTOR(8) SIMDE_MAY_ALIAS;
|
34
|
-
#else
|
35
|
-
int8_t i8[8];
|
36
|
-
#endif
|
37
|
-
|
38
|
-
#if defined(SIMDE_NEON_NATIVE)
|
39
|
-
int8x8_t n;
|
40
|
-
#endif
|
41
|
-
|
42
|
-
#if defined(SIMDE_NEON_MMX)
|
43
|
-
__m64 mmx;
|
44
|
-
#endif
|
45
|
-
} simde_int8x8_t;
|
46
|
-
|
47
|
-
#if defined(SIMDE_NEON_NATIVE)
|
48
|
-
HEDLEY_STATIC_ASSERT(sizeof(int8x8_t) == sizeof(simde_int8x8_t), "int8x8_t size doesn't match simde_int8x8_t size");
|
49
|
-
#endif
|
50
|
-
HEDLEY_STATIC_ASSERT(8 == sizeof(simde_int8x8_t), "simde_int8x8_t size incorrect");
|
51
|
-
|
52
|
-
SIMDE__FUNCTION_ATTRIBUTES
|
53
|
-
simde_int8x8_t
|
54
|
-
simde_vadd_s8(simde_int8x8_t a, simde_int8x8_t b) {
|
55
|
-
simde_int8x8_t r;
|
56
|
-
#if defined(SIMDE_NEON_NATIVE)
|
57
|
-
r.n = vadd_s8(a.n, b.n);
|
58
|
-
#elif defined(SIMDE_MMX_NATIVE)
|
59
|
-
r.mmx = _mm_add_pi8(a.mmx, b.mmx);
|
60
|
-
#else
|
61
|
-
SIMDE__VECTORIZE
|
62
|
-
for (size_t i = 0 ; i < (sizeof(r.i8) / sizeof(r.i8[0])) ; i++) {
|
63
|
-
r.i8[i] = a.i8[i] + b.i8[i];
|
64
|
-
}
|
65
|
-
#endif
|
66
|
-
return r;
|
67
|
-
}
|
68
|
-
|
69
|
-
SIMDE__FUNCTION_ATTRIBUTES
|
70
|
-
simde_int8x8_t
|
71
|
-
simde_vld1_s8 (int8_t const ptr[8]) {
|
72
|
-
simde_int8x8_t r;
|
73
|
-
#if defined(SIMDE_NEON_NATIVE)
|
74
|
-
r.n = vld1_s8(ptr);
|
75
|
-
#else
|
76
|
-
SIMDE__VECTORIZE
|
77
|
-
for (size_t i = 0 ; i < (sizeof(r.i8) / sizeof(r.i8[0])) ; i++) {
|
78
|
-
r.i8[i] = ptr[i];
|
79
|
-
}
|
80
|
-
#endif
|
81
|
-
return r;
|
82
|
-
}
|
83
|
-
|
84
|
-
SIMDE__FUNCTION_ATTRIBUTES
|
85
|
-
simde_int8x8_t
|
86
|
-
simde_x_vload_s8 (int8_t l0, int8_t l1, int8_t l2, int8_t l3,
|
87
|
-
int8_t l4, int8_t l5, int8_t l6, int8_t l7) {
|
88
|
-
int8_t v[] = { l0, l1, l2, l3, l4, l5, l6, l7 };
|
89
|
-
return simde_vld1_s8(v);
|
90
|
-
}
|
91
|
-
|
92
|
-
SIMDE__FUNCTION_ATTRIBUTES
|
93
|
-
simde_int8x8_t
|
94
|
-
simde_vdup_n_s8 (int8_t value) {
|
95
|
-
simde_int8x8_t r;
|
96
|
-
#if defined(SIMDE_NEON_NATIVE)
|
97
|
-
r.n = vdup_n_s8(value);
|
98
|
-
#else
|
99
|
-
SIMDE__VECTORIZE
|
100
|
-
for (size_t i = 0 ; i < (sizeof(r.i8) / sizeof(r.i8[0])) ; i++) {
|
101
|
-
r.i8[i] = value;
|
102
|
-
}
|
103
|
-
#endif
|
104
|
-
return r;
|
105
|
-
}
|
106
|
-
|
107
|
-
SIMDE__FUNCTION_ATTRIBUTES
|
108
|
-
simde_int8x8_t
|
109
|
-
simde_vmul_s8(simde_int8x8_t a, simde_int8x8_t b) {
|
110
|
-
simde_int8x8_t r;
|
111
|
-
#if defined(SIMDE_NEON_NATIVE)
|
112
|
-
r.n = vmul_s8(a.n, b.n);
|
113
|
-
#elif defined(SIMDE_MMX_NATIVE)
|
114
|
-
r.mmx = _mm_mul_pi8(a.mmx, b.mmx);
|
115
|
-
#else
|
116
|
-
SIMDE__VECTORIZE
|
117
|
-
for (size_t i = 0 ; i < (sizeof(r.i8) / sizeof(r.i8[0])) ; i++) {
|
118
|
-
r.i8[i] = a.i8[i] * b.i8[i];
|
119
|
-
}
|
120
|
-
#endif
|
121
|
-
return r;
|
122
|
-
}
|
123
|
-
|
124
|
-
SIMDE__FUNCTION_ATTRIBUTES
|
125
|
-
simde_int8x8_t
|
126
|
-
simde_vsub_s8(simde_int8x8_t a, simde_int8x8_t b) {
|
127
|
-
simde_int8x8_t r;
|
128
|
-
#if defined(SIMDE_NEON_NATIVE)
|
129
|
-
r.n = vsub_s8(a.n, b.n);
|
130
|
-
#elif defined(SIMDE_MMX_NATIVE)
|
131
|
-
r.mmx = _mm_sub_pi8(a.mmx, b.mmx);
|
132
|
-
#else
|
133
|
-
SIMDE__VECTORIZE
|
134
|
-
for (size_t i = 0 ; i < (sizeof(r.i8) / sizeof(r.i8[0])) ; i++) {
|
135
|
-
r.i8[i] = a.i8[i] - b.i8[i];
|
136
|
-
}
|
137
|
-
#endif
|
138
|
-
return r;
|
139
|
-
}
|
140
|
-
|
141
|
-
#endif
|
@@ -1,134 +0,0 @@
|
|
1
|
-
/* Copyright (c) 2018-2019 Evan Nemerson <evan@nemerson.com>
|
2
|
-
*
|
3
|
-
* Permission is hereby granted, free of charge, to any person
|
4
|
-
* obtaining a copy of this software and associated documentation
|
5
|
-
* files (the "Software"), to deal in the Software without
|
6
|
-
* restriction, including without limitation the rights to use, copy,
|
7
|
-
* modify, merge, publish, distribute, sublicense, and/or sell copies
|
8
|
-
* of the Software, and to permit persons to whom the Software is
|
9
|
-
* furnished to do so, subject to the following conditions:
|
10
|
-
*
|
11
|
-
* The above copyright notice and this permission notice shall be
|
12
|
-
* included in all copies or substantial portions of the Software.
|
13
|
-
*
|
14
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
-
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
-
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
-
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
|
18
|
-
* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
19
|
-
* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
20
|
-
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
-
* SOFTWARE.
|
22
|
-
*/
|
23
|
-
|
24
|
-
#if !defined(SIMDE__INSIDE_NEON_H)
|
25
|
-
# error Do not include simde/arm/neon/uint16x4.h directly; use simde/arm/neon.h.
|
26
|
-
#endif
|
27
|
-
|
28
|
-
#if !defined(SIMDE__NEON_UINT16X4_H)
|
29
|
-
#define SIMDE__NEON_UINT16X4_H
|
30
|
-
|
31
|
-
typedef union {
|
32
|
-
#if defined(SIMDE_VECTOR_SUBSCRIPT)
|
33
|
-
uint16_t u16 SIMDE_VECTOR(8) SIMDE_MAY_ALIAS;
|
34
|
-
#else
|
35
|
-
uint16_t u16[4];
|
36
|
-
#endif
|
37
|
-
|
38
|
-
#if defined(SIMDE_NEON_NATIVE)
|
39
|
-
uint16x4_t n;
|
40
|
-
#endif
|
41
|
-
|
42
|
-
#if defined(SIMDE_NEON_MMX)
|
43
|
-
__m64 mmx;
|
44
|
-
#endif
|
45
|
-
} simde_uint16x4_t;
|
46
|
-
|
47
|
-
#if defined(SIMDE_NEON_NATIVE)
|
48
|
-
HEDLEY_STATIC_ASSERT(sizeof(uint16x4_t) == sizeof(simde_uint16x4_t), "uint16x4_t size doesn't match simde_uint16x4_t size");
|
49
|
-
#endif
|
50
|
-
HEDLEY_STATIC_ASSERT(8 == sizeof(simde_uint16x4_t), "simde_uint16x4_t size incorrect");
|
51
|
-
|
52
|
-
SIMDE__FUNCTION_ATTRIBUTES
|
53
|
-
simde_uint16x4_t
|
54
|
-
simde_vadd_u16(simde_uint16x4_t a, simde_uint16x4_t b) {
|
55
|
-
simde_uint16x4_t r;
|
56
|
-
#if defined(SIMDE_NEON_NATIVE)
|
57
|
-
r.n = vadd_u16(a.n, b.n);
|
58
|
-
#else
|
59
|
-
SIMDE__VECTORIZE
|
60
|
-
for (size_t i = 0 ; i < (sizeof(r.u16) / sizeof(r.u16[0])) ; i++) {
|
61
|
-
r.u16[i] = a.u16[i] + b.u16[i];
|
62
|
-
}
|
63
|
-
#endif
|
64
|
-
return r;
|
65
|
-
}
|
66
|
-
|
67
|
-
SIMDE__FUNCTION_ATTRIBUTES
|
68
|
-
simde_uint16x4_t
|
69
|
-
simde_vld1_u16 (uint16_t const ptr[4]) {
|
70
|
-
simde_uint16x4_t r;
|
71
|
-
#if defined(SIMDE_NEON_NATIVE)
|
72
|
-
r.n = vld1_u16(ptr);
|
73
|
-
#else
|
74
|
-
SIMDE__VECTORIZE
|
75
|
-
for (size_t i = 0 ; i < (sizeof(r.u16) / sizeof(r.u16[0])) ; i++) {
|
76
|
-
r.u16[i] = ptr[i];
|
77
|
-
}
|
78
|
-
#endif
|
79
|
-
return r;
|
80
|
-
}
|
81
|
-
|
82
|
-
SIMDE__FUNCTION_ATTRIBUTES
|
83
|
-
simde_uint16x4_t
|
84
|
-
simde_x_vload_u16 (uint16_t l0, uint16_t l1, uint16_t l2, uint16_t l3) {
|
85
|
-
uint16_t v[] = { l0, l1, l2, l3 };
|
86
|
-
return simde_vld1_u16(v);
|
87
|
-
}
|
88
|
-
|
89
|
-
SIMDE__FUNCTION_ATTRIBUTES
|
90
|
-
simde_uint16x4_t
|
91
|
-
simde_vdup_n_u16 (uint16_t value) {
|
92
|
-
simde_uint16x4_t r;
|
93
|
-
#if defined(SIMDE_NEON_NATIVE)
|
94
|
-
r.n = vdup_n_u16(value);
|
95
|
-
#else
|
96
|
-
SIMDE__VECTORIZE
|
97
|
-
for (size_t i = 0 ; i < (sizeof(r.u16) / sizeof(r.u16[0])) ; i++) {
|
98
|
-
r.u16[i] = value;
|
99
|
-
}
|
100
|
-
#endif
|
101
|
-
return r;
|
102
|
-
}
|
103
|
-
|
104
|
-
SIMDE__FUNCTION_ATTRIBUTES
|
105
|
-
simde_uint16x4_t
|
106
|
-
simde_vmul_u16(simde_uint16x4_t a, simde_uint16x4_t b) {
|
107
|
-
simde_uint16x4_t r;
|
108
|
-
#if defined(SIMDE_NEON_NATIVE)
|
109
|
-
r.n = vmul_u16(a.n, b.n);
|
110
|
-
#else
|
111
|
-
SIMDE__VECTORIZE
|
112
|
-
for (size_t i = 0 ; i < (sizeof(r.u16) / sizeof(r.u16[0])) ; i++) {
|
113
|
-
r.u16[i] = a.u16[i] * b.u16[i];
|
114
|
-
}
|
115
|
-
#endif
|
116
|
-
return r;
|
117
|
-
}
|
118
|
-
|
119
|
-
SIMDE__FUNCTION_ATTRIBUTES
|
120
|
-
simde_uint16x4_t
|
121
|
-
simde_vsub_u16(simde_uint16x4_t a, simde_uint16x4_t b) {
|
122
|
-
simde_uint16x4_t r;
|
123
|
-
#if defined(SIMDE_NEON_NATIVE)
|
124
|
-
r.n = vsub_u16(a.n, b.n);
|
125
|
-
#else
|
126
|
-
SIMDE__VECTORIZE
|
127
|
-
for (size_t i = 0 ; i < (sizeof(r.u16) / sizeof(r.u16[0])) ; i++) {
|
128
|
-
r.u16[i] = a.u16[i] - b.u16[i];
|
129
|
-
}
|
130
|
-
#endif
|
131
|
-
return r;
|
132
|
-
}
|
133
|
-
|
134
|
-
#endif
|
@@ -1,138 +0,0 @@
|
|
1
|
-
/* Copyright (c) 2018-2019 Evan Nemerson <evan@nemerson.com>
|
2
|
-
*
|
3
|
-
* Permission is hereby granted, free of charge, to any person
|
4
|
-
* obtaining a copy of this software and associated documentation
|
5
|
-
* files (the "Software"), to deal in the Software without
|
6
|
-
* restriction, including without limitation the rights to use, copy,
|
7
|
-
* modify, merge, publish, distribute, sublicense, and/or sell copies
|
8
|
-
* of the Software, and to permit persons to whom the Software is
|
9
|
-
* furnished to do so, subject to the following conditions:
|
10
|
-
*
|
11
|
-
* The above copyright notice and this permission notice shall be
|
12
|
-
* included in all copies or substantial portions of the Software.
|
13
|
-
*
|
14
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
-
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
-
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
-
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
|
18
|
-
* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
19
|
-
* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
20
|
-
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
-
* SOFTWARE.
|
22
|
-
*/
|
23
|
-
|
24
|
-
#if !defined(SIMDE__INSIDE_NEON_H)
|
25
|
-
# error Do not include simde/arm/neon/uint16x8.h directly; use simde/arm/neon.h.
|
26
|
-
#endif
|
27
|
-
|
28
|
-
#if !defined(SIMDE__NEON_UINT16X8_H)
|
29
|
-
#define SIMDE__NEON_UINT16X8_H
|
30
|
-
|
31
|
-
typedef union {
|
32
|
-
#if defined(SIMDE_VECTOR_SUBSCRIPT)
|
33
|
-
uint16_t u16 SIMDE_VECTOR(16) SIMDE_MAY_ALIAS;
|
34
|
-
#else
|
35
|
-
uint16_t u16[8];
|
36
|
-
#endif
|
37
|
-
|
38
|
-
#if defined(SIMDE_NEON_NATIVE)
|
39
|
-
uint16x8_t n;
|
40
|
-
#endif
|
41
|
-
|
42
|
-
#if defined(SIMDE_NEON_MMX)
|
43
|
-
__m64 mmx[2];
|
44
|
-
#endif
|
45
|
-
#if defined(SIMDE_NEON_SSE2)
|
46
|
-
__m128i sse;
|
47
|
-
#endif
|
48
|
-
} simde_uint16x8_t;
|
49
|
-
|
50
|
-
#if defined(SIMDE_NEON_NATIVE)
|
51
|
-
HEDLEY_STATIC_ASSERT(sizeof(uint16x8_t) == sizeof(simde_uint16x8_t), "uint16x8_t size doesn't match simde_uint16x8_t size");
|
52
|
-
#endif
|
53
|
-
HEDLEY_STATIC_ASSERT(16 == sizeof(simde_uint16x8_t), "simde_uint16x8_t size incorrect");
|
54
|
-
|
55
|
-
SIMDE__FUNCTION_ATTRIBUTES
|
56
|
-
simde_uint16x8_t
|
57
|
-
simde_vaddq_u16(simde_uint16x8_t a, simde_uint16x8_t b) {
|
58
|
-
simde_uint16x8_t r;
|
59
|
-
#if defined(SIMDE_NEON_NATIVE)
|
60
|
-
r.n = vaddq_u16(a.n, b.n);
|
61
|
-
#else
|
62
|
-
SIMDE__VECTORIZE
|
63
|
-
for (size_t i = 0 ; i < (sizeof(r.u16) / sizeof(r.u16[0])) ; i++) {
|
64
|
-
r.u16[i] = a.u16[i] + b.u16[i];
|
65
|
-
}
|
66
|
-
#endif
|
67
|
-
return r;
|
68
|
-
}
|
69
|
-
|
70
|
-
SIMDE__FUNCTION_ATTRIBUTES
|
71
|
-
simde_uint16x8_t
|
72
|
-
simde_vld1q_u16 (uint16_t const ptr[8]) {
|
73
|
-
simde_uint16x8_t r;
|
74
|
-
#if defined(SIMDE_NEON_NATIVE)
|
75
|
-
r.n = vld1q_u16(ptr);
|
76
|
-
#else
|
77
|
-
SIMDE__VECTORIZE
|
78
|
-
for (size_t i = 0 ; i < (sizeof(r.u16) / sizeof(r.u16[0])) ; i++) {
|
79
|
-
r.u16[i] = ptr[i];
|
80
|
-
}
|
81
|
-
#endif
|
82
|
-
return r;
|
83
|
-
}
|
84
|
-
|
85
|
-
SIMDE__FUNCTION_ATTRIBUTES
|
86
|
-
simde_uint16x8_t
|
87
|
-
simde_x_vloadq_u16 (uint16_t l0, uint16_t l1, uint16_t l2, uint16_t l3,
|
88
|
-
uint16_t l4, uint16_t l5, uint16_t l6, uint16_t l7) {
|
89
|
-
uint16_t v[] = { l0, l1, l2, l3, l4, l5, l6, l7 };
|
90
|
-
return simde_vld1q_u16(v);
|
91
|
-
}
|
92
|
-
|
93
|
-
SIMDE__FUNCTION_ATTRIBUTES
|
94
|
-
simde_uint16x8_t
|
95
|
-
simde_vdupq_n_u16 (uint16_t value) {
|
96
|
-
simde_uint16x8_t r;
|
97
|
-
#if defined(SIMDE_NEON_NATIVE)
|
98
|
-
r.n = vdupq_n_u16(value);
|
99
|
-
#else
|
100
|
-
SIMDE__VECTORIZE
|
101
|
-
for (size_t i = 0 ; i < (sizeof(r.u16) / sizeof(r.u16[0])) ; i++) {
|
102
|
-
r.u16[i] = value;
|
103
|
-
}
|
104
|
-
#endif
|
105
|
-
return r;
|
106
|
-
}
|
107
|
-
|
108
|
-
SIMDE__FUNCTION_ATTRIBUTES
|
109
|
-
simde_uint16x8_t
|
110
|
-
simde_vmulq_u16(simde_uint16x8_t a, simde_uint16x8_t b) {
|
111
|
-
simde_uint16x8_t r;
|
112
|
-
#if defined(SIMDE_NEON_NATIVE)
|
113
|
-
r.n = vmulq_u16(a.n, b.n);
|
114
|
-
#else
|
115
|
-
SIMDE__VECTORIZE
|
116
|
-
for (size_t i = 0 ; i < (sizeof(r.u16) / sizeof(r.u16[0])) ; i++) {
|
117
|
-
r.u16[i] = a.u16[i] * b.u16[i];
|
118
|
-
}
|
119
|
-
#endif
|
120
|
-
return r;
|
121
|
-
}
|
122
|
-
|
123
|
-
SIMDE__FUNCTION_ATTRIBUTES
|
124
|
-
simde_uint16x8_t
|
125
|
-
simde_vsubq_u16(simde_uint16x8_t a, simde_uint16x8_t b) {
|
126
|
-
simde_uint16x8_t r;
|
127
|
-
#if defined(SIMDE_NEON_NATIVE)
|
128
|
-
r.n = vsubq_u16(a.n, b.n);
|
129
|
-
#else
|
130
|
-
SIMDE__VECTORIZE
|
131
|
-
for (size_t i = 0 ; i < (sizeof(r.u16) / sizeof(r.u16[0])) ; i++) {
|
132
|
-
r.u16[i] = a.u16[i] - b.u16[i];
|
133
|
-
}
|
134
|
-
#endif
|
135
|
-
return r;
|
136
|
-
}
|
137
|
-
|
138
|
-
#endif
|
@@ -1,134 +0,0 @@
|
|
1
|
-
/* Copyright (c) 2018-2019 Evan Nemerson <evan@nemerson.com>
|
2
|
-
*
|
3
|
-
* Permission is hereby granted, free of charge, to any person
|
4
|
-
* obtaining a copy of this software and associated documentation
|
5
|
-
* files (the "Software"), to deal in the Software without
|
6
|
-
* restriction, including without limitation the rights to use, copy,
|
7
|
-
* modify, merge, publish, distribute, sublicense, and/or sell copies
|
8
|
-
* of the Software, and to permit persons to whom the Software is
|
9
|
-
* furnished to do so, subject to the following conditions:
|
10
|
-
*
|
11
|
-
* The above copyright notice and this permission notice shall be
|
12
|
-
* included in all copies or substantial portions of the Software.
|
13
|
-
*
|
14
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
-
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
-
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
-
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
|
18
|
-
* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
19
|
-
* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
20
|
-
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
-
* SOFTWARE.
|
22
|
-
*/
|
23
|
-
|
24
|
-
#if !defined(SIMDE__INSIDE_NEON_H)
|
25
|
-
# error Do not include simde/arm/neon/uint32x2.h directly; use simde/arm/neon.h.
|
26
|
-
#endif
|
27
|
-
|
28
|
-
#if !defined(SIMDE__NEON_UINT32X2_H)
|
29
|
-
#define SIMDE__NEON_UINT32X2_H
|
30
|
-
|
31
|
-
typedef union {
|
32
|
-
#if defined(SIMDE_VECTOR_SUBSCRIPT)
|
33
|
-
uint32_t u32 SIMDE_VECTOR(8) SIMDE_MAY_ALIAS;
|
34
|
-
#else
|
35
|
-
uint32_t u32[2];
|
36
|
-
#endif
|
37
|
-
|
38
|
-
#if defined(SIMDE_NEON_NATIVE)
|
39
|
-
uint32x2_t n;
|
40
|
-
#endif
|
41
|
-
|
42
|
-
#if defined(SIMDE_NEON_MMX)
|
43
|
-
__m64 mmx;
|
44
|
-
#endif
|
45
|
-
} simde_uint32x2_t;
|
46
|
-
|
47
|
-
#if defined(SIMDE_NEON_NATIVE)
|
48
|
-
HEDLEY_STATIC_ASSERT(sizeof(uint32x2_t) == sizeof(simde_uint32x2_t), "uint32x2_t size doesn't match simde_uint32x2_t size");
|
49
|
-
#endif
|
50
|
-
HEDLEY_STATIC_ASSERT(8 == sizeof(simde_uint32x2_t), "simde_uint32x2_t size incorrect");
|
51
|
-
|
52
|
-
SIMDE__FUNCTION_ATTRIBUTES
|
53
|
-
simde_uint32x2_t
|
54
|
-
simde_vadd_u32(simde_uint32x2_t a, simde_uint32x2_t b) {
|
55
|
-
simde_uint32x2_t r;
|
56
|
-
#if defined(SIMDE_NEON_NATIVE)
|
57
|
-
r.n = vadd_u32(a.n, b.n);
|
58
|
-
#else
|
59
|
-
SIMDE__VECTORIZE
|
60
|
-
for (size_t i = 0 ; i < (sizeof(r.u32) / sizeof(r.u32[0])) ; i++) {
|
61
|
-
r.u32[i] = a.u32[i] + b.u32[i];
|
62
|
-
}
|
63
|
-
#endif
|
64
|
-
return r;
|
65
|
-
}
|
66
|
-
|
67
|
-
SIMDE__FUNCTION_ATTRIBUTES
|
68
|
-
simde_uint32x2_t
|
69
|
-
simde_vld1_u32 (uint32_t const ptr[2]) {
|
70
|
-
simde_uint32x2_t r;
|
71
|
-
#if defined(SIMDE_NEON_NATIVE)
|
72
|
-
r.n = vld1_u32(ptr);
|
73
|
-
#else
|
74
|
-
SIMDE__VECTORIZE
|
75
|
-
for (size_t i = 0 ; i < (sizeof(r.u32) / sizeof(r.u32[0])) ; i++) {
|
76
|
-
r.u32[i] = ptr[i];
|
77
|
-
}
|
78
|
-
#endif
|
79
|
-
return r;
|
80
|
-
}
|
81
|
-
|
82
|
-
SIMDE__FUNCTION_ATTRIBUTES
|
83
|
-
simde_uint32x2_t
|
84
|
-
simde_x_vload_u32 (uint32_t l0, uint32_t l1) {
|
85
|
-
uint32_t v[] = { l0, l1 };
|
86
|
-
return simde_vld1_u32(v);
|
87
|
-
}
|
88
|
-
|
89
|
-
SIMDE__FUNCTION_ATTRIBUTES
|
90
|
-
simde_uint32x2_t
|
91
|
-
simde_vdup_n_u32 (uint32_t value) {
|
92
|
-
simde_uint32x2_t r;
|
93
|
-
#if defined(SIMDE_NEON_NATIVE)
|
94
|
-
r.n = vdup_n_u32(value);
|
95
|
-
#else
|
96
|
-
SIMDE__VECTORIZE
|
97
|
-
for (size_t i = 0 ; i < (sizeof(r.u32) / sizeof(r.u32[0])) ; i++) {
|
98
|
-
r.u32[i] = value;
|
99
|
-
}
|
100
|
-
#endif
|
101
|
-
return r;
|
102
|
-
}
|
103
|
-
|
104
|
-
SIMDE__FUNCTION_ATTRIBUTES
|
105
|
-
simde_uint32x2_t
|
106
|
-
simde_vmul_u32(simde_uint32x2_t a, simde_uint32x2_t b) {
|
107
|
-
simde_uint32x2_t r;
|
108
|
-
#if defined(SIMDE_NEON_NATIVE)
|
109
|
-
r.n = vmul_u32(a.n, b.n);
|
110
|
-
#else
|
111
|
-
SIMDE__VECTORIZE
|
112
|
-
for (size_t i = 0 ; i < (sizeof(r.u32) / sizeof(r.u32[0])) ; i++) {
|
113
|
-
r.u32[i] = a.u32[i] * b.u32[i];
|
114
|
-
}
|
115
|
-
#endif
|
116
|
-
return r;
|
117
|
-
}
|
118
|
-
|
119
|
-
SIMDE__FUNCTION_ATTRIBUTES
|
120
|
-
simde_uint32x2_t
|
121
|
-
simde_vsub_u32(simde_uint32x2_t a, simde_uint32x2_t b) {
|
122
|
-
simde_uint32x2_t r;
|
123
|
-
#if defined(SIMDE_NEON_NATIVE)
|
124
|
-
r.n = vsub_u32(a.n, b.n);
|
125
|
-
#else
|
126
|
-
SIMDE__VECTORIZE
|
127
|
-
for (size_t i = 0 ; i < (sizeof(r.u32) / sizeof(r.u32[0])) ; i++) {
|
128
|
-
r.u32[i] = a.u32[i] - b.u32[i];
|
129
|
-
}
|
130
|
-
#endif
|
131
|
-
return r;
|
132
|
-
}
|
133
|
-
|
134
|
-
#endif
|
@@ -1,137 +0,0 @@
|
|
1
|
-
/* Copyright (c) 2018-2019 Evan Nemerson <evan@nemerson.com>
|
2
|
-
*
|
3
|
-
* Permission is hereby granted, free of charge, to any person
|
4
|
-
* obtaining a copy of this software and associated documentation
|
5
|
-
* files (the "Software"), to deal in the Software without
|
6
|
-
* restriction, including without limitation the rights to use, copy,
|
7
|
-
* modify, merge, publish, distribute, sublicense, and/or sell copies
|
8
|
-
* of the Software, and to permit persons to whom the Software is
|
9
|
-
* furnished to do so, subject to the following conditions:
|
10
|
-
*
|
11
|
-
* The above copyright notice and this permission notice shall be
|
12
|
-
* included in all copies or substantial portions of the Software.
|
13
|
-
*
|
14
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
-
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
-
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
-
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
|
18
|
-
* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
19
|
-
* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
20
|
-
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
-
* SOFTWARE.
|
22
|
-
*/
|
23
|
-
|
24
|
-
#if !defined(SIMDE__INSIDE_NEON_H)
|
25
|
-
# error Do not include simde/arm/neon/uint32x4.h directly; use simde/arm/neon.h.
|
26
|
-
#endif
|
27
|
-
|
28
|
-
#if !defined(SIMDE__NEON_UINT32X4_H)
|
29
|
-
#define SIMDE__NEON_UINT32X4_H
|
30
|
-
|
31
|
-
typedef union {
|
32
|
-
#if defined(SIMDE_VECTOR_SUBSCRIPT)
|
33
|
-
uint32_t u32 SIMDE_VECTOR(16) SIMDE_MAY_ALIAS;
|
34
|
-
#else
|
35
|
-
uint32_t u32[4];
|
36
|
-
#endif
|
37
|
-
|
38
|
-
#if defined(SIMDE_NEON_NATIVE)
|
39
|
-
uint32x4_t n;
|
40
|
-
#endif
|
41
|
-
|
42
|
-
#if defined(SIMDE_NEON_MMX)
|
43
|
-
__m64 mmx[2];
|
44
|
-
#endif
|
45
|
-
#if defined(SIMDE_NEON_SSE2)
|
46
|
-
__m128i sse;
|
47
|
-
#endif
|
48
|
-
} simde_uint32x4_t;
|
49
|
-
|
50
|
-
#if defined(SIMDE_NEON_NATIVE)
|
51
|
-
HEDLEY_STATIC_ASSERT(sizeof(uint32x4_t) == sizeof(simde_uint32x4_t), "uint32x4_t size doesn't match simde_uint32x4_t size");
|
52
|
-
#endif
|
53
|
-
HEDLEY_STATIC_ASSERT(16 == sizeof(simde_uint32x4_t), "simde_uint32x4_t size incorrect");
|
54
|
-
|
55
|
-
SIMDE__FUNCTION_ATTRIBUTES
|
56
|
-
simde_uint32x4_t
|
57
|
-
simde_vaddq_u32(simde_uint32x4_t a, simde_uint32x4_t b) {
|
58
|
-
simde_uint32x4_t r;
|
59
|
-
#if defined(SIMDE_NEON_NATIVE)
|
60
|
-
r.n = vaddq_u32(a.n, b.n);
|
61
|
-
#else
|
62
|
-
SIMDE__VECTORIZE
|
63
|
-
for (size_t i = 0 ; i < (sizeof(r.u32) / sizeof(r.u32[0])) ; i++) {
|
64
|
-
r.u32[i] = a.u32[i] + b.u32[i];
|
65
|
-
}
|
66
|
-
#endif
|
67
|
-
return r;
|
68
|
-
}
|
69
|
-
|
70
|
-
SIMDE__FUNCTION_ATTRIBUTES
|
71
|
-
simde_uint32x4_t
|
72
|
-
simde_vld1q_u32 (uint32_t const ptr[4]) {
|
73
|
-
simde_uint32x4_t r;
|
74
|
-
#if defined(SIMDE_NEON_NATIVE)
|
75
|
-
r.n = vld1q_u32(ptr);
|
76
|
-
#else
|
77
|
-
SIMDE__VECTORIZE
|
78
|
-
for (size_t i = 0 ; i < (sizeof(r.u32) / sizeof(r.u32[0])) ; i++) {
|
79
|
-
r.u32[i] = ptr[i];
|
80
|
-
}
|
81
|
-
#endif
|
82
|
-
return r;
|
83
|
-
}
|
84
|
-
|
85
|
-
SIMDE__FUNCTION_ATTRIBUTES
|
86
|
-
simde_uint32x4_t
|
87
|
-
simde_x_vloadq_u32 (uint32_t l0, uint32_t l1, uint32_t l2, uint32_t l3) {
|
88
|
-
uint32_t v[] = { l0, l1, l2, l3 };
|
89
|
-
return simde_vld1q_u32(v);
|
90
|
-
}
|
91
|
-
|
92
|
-
SIMDE__FUNCTION_ATTRIBUTES
|
93
|
-
simde_uint32x4_t
|
94
|
-
simde_vdupq_n_u32 (uint32_t value) {
|
95
|
-
simde_uint32x4_t r;
|
96
|
-
#if defined(SIMDE_NEON_NATIVE)
|
97
|
-
r.n = vdupq_n_u32(value);
|
98
|
-
#else
|
99
|
-
SIMDE__VECTORIZE
|
100
|
-
for (size_t i = 0 ; i < (sizeof(r.u32) / sizeof(r.u32[0])) ; i++) {
|
101
|
-
r.u32[i] = value;
|
102
|
-
}
|
103
|
-
#endif
|
104
|
-
return r;
|
105
|
-
}
|
106
|
-
|
107
|
-
SIMDE__FUNCTION_ATTRIBUTES
|
108
|
-
simde_uint32x4_t
|
109
|
-
simde_vmulq_u32(simde_uint32x4_t a, simde_uint32x4_t b) {
|
110
|
-
simde_uint32x4_t r;
|
111
|
-
#if defined(SIMDE_NEON_NATIVE)
|
112
|
-
r.n = vmulq_u32(a.n, b.n);
|
113
|
-
#else
|
114
|
-
SIMDE__VECTORIZE
|
115
|
-
for (size_t i = 0 ; i < (sizeof(r.u32) / sizeof(r.u32[0])) ; i++) {
|
116
|
-
r.u32[i] = a.u32[i] * b.u32[i];
|
117
|
-
}
|
118
|
-
#endif
|
119
|
-
return r;
|
120
|
-
}
|
121
|
-
|
122
|
-
SIMDE__FUNCTION_ATTRIBUTES
|
123
|
-
simde_uint32x4_t
|
124
|
-
simde_vsubq_u32(simde_uint32x4_t a, simde_uint32x4_t b) {
|
125
|
-
simde_uint32x4_t r;
|
126
|
-
#if defined(SIMDE_NEON_NATIVE)
|
127
|
-
r.n = vsubq_u32(a.n, b.n);
|
128
|
-
#else
|
129
|
-
SIMDE__VECTORIZE
|
130
|
-
for (size_t i = 0 ; i < (sizeof(r.u32) / sizeof(r.u32[0])) ; i++) {
|
131
|
-
r.u32[i] = a.u32[i] - b.u32[i];
|
132
|
-
}
|
133
|
-
#endif
|
134
|
-
return r;
|
135
|
-
}
|
136
|
-
|
137
|
-
#endif
|