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,16 +0,0 @@
|
|
1
|
-
#include "../../simde/x86/avx.h"
|
2
|
-
|
3
|
-
#include "test-sse2.h"
|
4
|
-
|
5
|
-
#if !defined(SIMDE_TEST_X86_AVX)
|
6
|
-
#define SIMDE_TEST_X86_AVX
|
7
|
-
|
8
|
-
SIMDE_TEST_DEFINE_ASSERT_VEC_CLOSE(m256, f32)
|
9
|
-
SIMDE_TEST_DEFINE_ASSERT_VEC_CLOSE(m256d, f64)
|
10
|
-
|
11
|
-
#define simde_assert_m256_close(a, b, precision) \
|
12
|
-
simde_assert_m256_f32_close_ex(__LINE__, __FILE__, a, b, precision)
|
13
|
-
#define simde_assert_m256d_close(a, b, precision) \
|
14
|
-
simde_assert_m256d_f64_close_ex(__LINE__, __FILE__, a, b, precision)
|
15
|
-
|
16
|
-
#endif /* !defined(SIMDE_TEST_X86_AVX) */
|
@@ -1,25 +0,0 @@
|
|
1
|
-
#include "../../simde/x86/avx512f.h"
|
2
|
-
|
3
|
-
#include "test-avx.h"
|
4
|
-
|
5
|
-
#if !defined(SIMDE_TEST_X86_AVX512)
|
6
|
-
#define SIMDE_TEST_X86_AVX512
|
7
|
-
|
8
|
-
SIMDE_TEST_DEFINE_ASSERT_VEC_CLOSE(m512, f32)
|
9
|
-
SIMDE_TEST_DEFINE_ASSERT_VEC_CLOSE(m512d, f64)
|
10
|
-
|
11
|
-
#define simde_assert_m512_close(a, b, precision) \
|
12
|
-
simde_assert_m512_f32_close_ex(__LINE__, __FILE__, a, b, precision)
|
13
|
-
#define simde_assert_m512d_close(a, b, precision) \
|
14
|
-
simde_assert_m512d_f64_close_ex(__LINE__, __FILE__, a, b, precision)
|
15
|
-
|
16
|
-
#define simde_assert_mmask8(a, op, b) \
|
17
|
-
munit_assert_uint8(HEDLEY_STATIC_CAST(uint8_t, a), op, HEDLEY_STATIC_CAST(uint8_t, b))
|
18
|
-
#define simde_assert_mmask16(a, op, b) \
|
19
|
-
munit_assert_uint16(HEDLEY_STATIC_CAST(uint16_t, a), op, HEDLEY_STATIC_CAST(uint16_t, b))
|
20
|
-
#define simde_assert_mmask32(a, op, b) \
|
21
|
-
munit_assert_uint32(HEDLEY_STATIC_CAST(uint32_t, a), op, HEDLEY_STATIC_CAST(uint32_t, b))
|
22
|
-
#define simde_assert_mmask64(a, op, b) \
|
23
|
-
munit_assert_uint64(HEDLEY_STATIC_CAST(uint64_t, a), op, HEDLEY_STATIC_CAST(uint64_t, b))
|
24
|
-
|
25
|
-
#endif /* !defined(SIMDE_TEST_X86_AVX512) */
|
@@ -1,13 +0,0 @@
|
|
1
|
-
#include "../../simde/x86/mmx.h"
|
2
|
-
|
3
|
-
#include "test-x86-internal.h"
|
4
|
-
|
5
|
-
#if !defined(SIMDE_TEST_X86_MMX)
|
6
|
-
#define SIMDE_TEST_X86_MMX
|
7
|
-
|
8
|
-
SIMDE_TEST_DEFINE_ASSERT_VEC_CLOSE(m64, f32)
|
9
|
-
|
10
|
-
#define simde_assert_m64_close(a, b, precision) \
|
11
|
-
simde_assert_m64_f32_close_ex(__LINE__, __FILE__, a, b, precision)
|
12
|
-
|
13
|
-
#endif /* !defined(SIMDE_TEST_X86_MMX) */
|
@@ -1,13 +0,0 @@
|
|
1
|
-
#include "../../simde/x86/sse.h"
|
2
|
-
|
3
|
-
#include "test-mmx.h"
|
4
|
-
|
5
|
-
#if !defined(SIMDE_TEST_X86_SSE)
|
6
|
-
#define SIMDE_TEST_X86_SSE
|
7
|
-
|
8
|
-
SIMDE_TEST_DEFINE_ASSERT_VEC_CLOSE(m128, f32)
|
9
|
-
|
10
|
-
#define simde_assert_m128_close(a, b, precision) \
|
11
|
-
simde_assert_m128_f32_close_ex(__LINE__, __FILE__, a, b, precision)
|
12
|
-
|
13
|
-
#endif /* !defined(SIMDE_TEST_X86_SSE) */
|
@@ -1,13 +0,0 @@
|
|
1
|
-
#include "../../simde/x86/sse2.h"
|
2
|
-
|
3
|
-
#include "test-sse.h"
|
4
|
-
|
5
|
-
#if !defined(SIMDE_TEST_X86_SSE2)
|
6
|
-
#define SIMDE_TEST_X86_SSE2
|
7
|
-
|
8
|
-
SIMDE_TEST_DEFINE_ASSERT_VEC_CLOSE(m128d, f64)
|
9
|
-
|
10
|
-
#define simde_assert_m128d_close(a, b, precision) \
|
11
|
-
simde_assert_m128d_f64_close_ex(__LINE__, __FILE__, a, b, precision)
|
12
|
-
|
13
|
-
#endif /* !defined(SIMDE_TEST_X86_SSE2) */
|
@@ -1,196 +0,0 @@
|
|
1
|
-
#if !defined(SIMDE_TESTS_X86_INTERNAL_H)
|
2
|
-
#define SIMDE_TESTS_CURRENT_ARCH x86
|
3
|
-
|
4
|
-
#include "../run-tests.h"
|
5
|
-
|
6
|
-
/* Assert that two vectors are bit-identical without worring about the
|
7
|
-
underlying type. */
|
8
|
-
#define simde_assert_vec_equal(a, b, T) do { \
|
9
|
-
const T##_private simde_a_ = T##_to_private(a); \
|
10
|
-
const T##_private simde_b_ = T##_to_private(b); \
|
11
|
-
for (int simde_i_ = 0 ; simde_i_ < HEDLEY_STATIC_CAST(int, (sizeof(simde_a_.u32f) / sizeof(simde_a_.u32f[0]))) ; simde_i_++) { \
|
12
|
-
if (HEDLEY_UNLIKELY(simde_a_.u32f[simde_i_] != simde_b_.u32f[simde_i_])) { \
|
13
|
-
munit_errorf("assertion failed: " #a ".u32f[%d] (%" PRIxFAST32 ") != " #b ".u32f[%d] (%" PRIxFAST32 ")", \
|
14
|
-
simde_i_, simde_a_.u32f[simde_i_], \
|
15
|
-
simde_i_, simde_b_.u32f[simde_i_]); \
|
16
|
-
} \
|
17
|
-
} \
|
18
|
-
} while(0)
|
19
|
-
#define simde_assert_m64_equal(a, b) \
|
20
|
-
simde_assert_vec_equal(a, b, simde__m64)
|
21
|
-
#define simde_assert_m128_equal(a, b) \
|
22
|
-
simde_assert_vec_equal(a, b, simde__m128)
|
23
|
-
#define simde_assert_m128i_equal(a, b) \
|
24
|
-
simde_assert_vec_equal(a, b, simde__m128i)
|
25
|
-
#define simde_assert_m128d_equal(a, b) \
|
26
|
-
simde_assert_vec_equal(a, b, simde__m128d)
|
27
|
-
#define simde_assert_m256_equal(a, b) \
|
28
|
-
simde_assert_vec_equal(a, b, simde__m256)
|
29
|
-
#define simde_assert_m256i_equal(a, b) \
|
30
|
-
simde_assert_vec_equal(a, b, simde__m256i)
|
31
|
-
#define simde_assert_m256d_equal(a, b) \
|
32
|
-
simde_assert_vec_equal(a, b, simde__m256d)
|
33
|
-
|
34
|
-
/* Assert that every integer in two vectors are equal */
|
35
|
-
#define simde_assert_vec_i(a, op, b, T, accessor, fmt) do { \
|
36
|
-
const T##_private simde_a_ = T##_to_private(a); \
|
37
|
-
const T##_private simde_b_ = T##_to_private(b); \
|
38
|
-
for (int simde_i_ = 0 ; simde_i_ < HEDLEY_STATIC_CAST(int, (sizeof(simde_a_.accessor) / sizeof(simde_a_.accessor[0]))) ; simde_i_++) { \
|
39
|
-
if (HEDLEY_UNLIKELY(!(simde_a_.accessor[simde_i_] op simde_b_.accessor[simde_i_]))) { \
|
40
|
-
munit_errorf("assertion failed: " #a "." #accessor "[%d] " #op " " #b "." #accessor "[%d] (%" fmt " " #op " %" fmt ")", \
|
41
|
-
simde_i_, simde_i_, simde_a_.accessor[simde_i_], simde_b_.accessor[simde_i_]); \
|
42
|
-
} \
|
43
|
-
} \
|
44
|
-
} while (0)
|
45
|
-
#define simde_assert_m512i_i8(a, op, b) \
|
46
|
-
simde_assert_vec_i(a, op, b, simde__m512i, i8, PRId8)
|
47
|
-
#define simde_assert_m512i_i16(a, op, b) \
|
48
|
-
simde_assert_vec_i(a, op, b, simde__m512i, i16, PRId16)
|
49
|
-
#define simde_assert_m512i_i32(a, op, b) \
|
50
|
-
simde_assert_vec_i(a, op, b, simde__m512i, i32, PRId32)
|
51
|
-
#define simde_assert_m512i_i64(a, op, b) \
|
52
|
-
simde_assert_vec_i(a, op, b, simde__m512i, i64, PRId64)
|
53
|
-
#define simde_assert_m512i_u8(a, op, b) \
|
54
|
-
simde_assert_vec_i(a, op, b, simde__m512i, u8, PRIu8)
|
55
|
-
#define simde_assert_m512i_u16(a, op, b) \
|
56
|
-
simde_assert_vec_i(a, op, b, simde__m512i, u16, PRIu16)
|
57
|
-
#define simde_assert_m512i_u32(a, op, b) \
|
58
|
-
simde_assert_vec_i(a, op, b, simde__m512i, u32, PRIu32)
|
59
|
-
#define simde_assert_m512i_u64(a, op, b) \
|
60
|
-
simde_assert_vec_i(a, op, b, simde__m512i, u64, PRIu64)
|
61
|
-
#define simde_assert_m256i_i8(a, op, b) \
|
62
|
-
simde_assert_vec_i(a, op, b, simde__m256i, i8, PRId8)
|
63
|
-
#define simde_assert_m256i_i16(a, op, b) \
|
64
|
-
simde_assert_vec_i(a, op, b, simde__m256i, i16, PRId16)
|
65
|
-
#define simde_assert_m256i_i32(a, op, b) \
|
66
|
-
simde_assert_vec_i(a, op, b, simde__m256i, i32, PRId32)
|
67
|
-
#define simde_assert_m256i_i64(a, op, b) \
|
68
|
-
simde_assert_vec_i(a, op, b, simde__m256i, i64, PRId64)
|
69
|
-
#define simde_assert_m256i_u8(a, op, b) \
|
70
|
-
simde_assert_vec_i(a, op, b, simde__m256i, u8, PRIu8)
|
71
|
-
#define simde_assert_m256i_u16(a, op, b) \
|
72
|
-
simde_assert_vec_i(a, op, b, simde__m256i, u16, PRIu16)
|
73
|
-
#define simde_assert_m256i_u32(a, op, b) \
|
74
|
-
simde_assert_vec_i(a, op, b, simde__m256i, u32, PRIu32)
|
75
|
-
#define simde_assert_m256i_u64(a, op, b) \
|
76
|
-
simde_assert_vec_i(a, op, b, simde__m256i, u64, PRIu64)
|
77
|
-
#define simde_assert_m128i_i8(a, op, b) \
|
78
|
-
simde_assert_vec_i(a, op, b, simde__m128i, i8, PRId8)
|
79
|
-
#define simde_assert_m128i_i16(a, op, b) \
|
80
|
-
simde_assert_vec_i(a, op, b, simde__m128i, i16, PRId16)
|
81
|
-
#define simde_assert_m128i_i32(a, op, b) \
|
82
|
-
simde_assert_vec_i(a, op, b, simde__m128i, i32, PRId32)
|
83
|
-
#define simde_assert_m128i_i64(a, op, b) \
|
84
|
-
simde_assert_vec_i(a, op, b, simde__m128i, i64, PRId64)
|
85
|
-
#define simde_assert_m128i_u8(a, op, b) \
|
86
|
-
simde_assert_vec_i(a, op, b, simde__m128i, u8, PRIu8)
|
87
|
-
#define simde_assert_m128i_u16(a, op, b) \
|
88
|
-
simde_assert_vec_i(a, op, b, simde__m128i, u16, PRIu16)
|
89
|
-
#define simde_assert_m128i_u32(a, op, b) \
|
90
|
-
simde_assert_vec_i(a, op, b, simde__m128i, u32, PRIu32)
|
91
|
-
#define simde_assert_m128i_u64(a, op, b) \
|
92
|
-
simde_assert_vec_i(a, op, b, simde__m128i, u64, PRIu64)
|
93
|
-
#define simde_assert_m64_i8(a, op, b) \
|
94
|
-
simde_assert_vec_i(a, op, b, simde__m64, i8, PRId8)
|
95
|
-
#define simde_assert_m64_i16(a, op, b) \
|
96
|
-
simde_assert_vec_i(a, op, b, simde__m64, i16, PRId16)
|
97
|
-
#define simde_assert_m64_i32(a, op, b) \
|
98
|
-
simde_assert_vec_i(a, op, b, simde__m64, i32, PRId32)
|
99
|
-
#define simde_assert_m64_i64(a, op, b) \
|
100
|
-
simde_assert_vec_i(a, op, b, simde__m64, i64, PRId64)
|
101
|
-
#define simde_assert_m64_u8(a, op, b) \
|
102
|
-
simde_assert_vec_i(a, op, b, simde__m64, u8, PRIu8)
|
103
|
-
#define simde_assert_m64_u16(a, op, b) \
|
104
|
-
simde_assert_vec_i(a, op, b, simde__m64, u16, PRIu16)
|
105
|
-
#define simde_assert_m64_u32(a, op, b) \
|
106
|
-
simde_assert_vec_i(a, op, b, simde__m64, u32, PRIu32)
|
107
|
-
#define simde_assert_m64_u64(a, op, b) \
|
108
|
-
simde_assert_vec_i(a, op, b, simde__m64, u64, PRIu64)
|
109
|
-
|
110
|
-
/* Assert that the integer values in each vector are approximately equal. */
|
111
|
-
#define simde_assert_vec_i_close(a, b, precision, T, accessor, fmt) do { \
|
112
|
-
const T##_private simde_a_ = T##_to_private(a); \
|
113
|
-
const T##_private simde_b_ = T##_to_private(b); \
|
114
|
-
for (int simde_i_ = 0 ; simde_i_ < HEDLEY_STATIC_CAST(int, (sizeof(simde_a_.accessor) / sizeof(simde_a_.accessor[0]))) ; simde_i_++) { \
|
115
|
-
if (!((simde_a_.accessor[simde_i_] <= (simde_b_.accessor[simde_i_] + precision)) && (simde_a_.accessor[simde_i_] >= (simde_b_.accessor[simde_i_] - precision)))) { \
|
116
|
-
munit_errorf("assertion failed: " #a "." #accessor "[%d] " SIMDE_ALMOST_EQUAL_TO " " #b "." #accessor "[%d] (%" fmt " " SIMDE_ALMOST_EQUAL_TO " %" fmt ")", \
|
117
|
-
simde_i_, simde_i_, simde_a_.accessor[simde_i_], simde_b_.accessor[simde_i_]); \
|
118
|
-
} \
|
119
|
-
} \
|
120
|
-
} while(0)
|
121
|
-
|
122
|
-
#define simde_assert_m64_i8_close(a, b, precision) \
|
123
|
-
simde_assert_vec_i_close(a, b, precision, simde__m64, i8, PRId8)
|
124
|
-
#define simde_assert_m64_i16_close(a, b, precision) \
|
125
|
-
simde_assert_vec_i_close(a, b, precision, simde__m64, i16, PRId16)
|
126
|
-
#define simde_assert_m64_i32_close(a, b, precision) \
|
127
|
-
simde_assert_vec_i_close(a, b, precision, simde__m64, i32, PRId32)
|
128
|
-
#define simde_assert_m64_i64_close(a, b, precision) \
|
129
|
-
simde_assert_vec_i_close(a, b, precision, simde__m64, i64, PRId64)
|
130
|
-
#define simde_assert_m64_u8_close(a, b, precision) \
|
131
|
-
simde_assert_vec_i_close(a, b, precision, simde__m64, u8, PRIu8)
|
132
|
-
#define simde_assert_m64_u16_close(a, b, precision) \
|
133
|
-
simde_assert_vec_i_close(a, b, precision, simde__m64, u16, PRIu16)
|
134
|
-
#define simde_assert_m64_u32_close(a, b, precision) \
|
135
|
-
simde_assert_vec_i_close(a, b, precision, simde__m64, u32, PRIu32)
|
136
|
-
#define simde_assert_m64_u64_close(a, b, precision) \
|
137
|
-
simde_assert_vec_i_close(a, b, precision, simde__m64, u64, PRIu64)
|
138
|
-
#define simde_assert_m128i_i8_close(a, b, precision) \
|
139
|
-
simde_assert_vec_i_close(a, b, precision, simde__m128i, i8, PRId8)
|
140
|
-
#define simde_assert_m128i_i16_close(a, b, precision) \
|
141
|
-
simde_assert_vec_i_close(a, b, precision, simde__m128i, i16, PRId16)
|
142
|
-
#define simde_assert_m128i_i32_close(a, b, precision) \
|
143
|
-
simde_assert_vec_i_close(a, b, precision, simde__m128i, i32, PRId32)
|
144
|
-
#define simde_assert_m128i_i64_close(a, b, precision) \
|
145
|
-
simde_assert_vec_i_close(a, b, precision, simde__m128i, i64, PRId64)
|
146
|
-
#define simde_assert_m128i_u8_close(a, b, precision) \
|
147
|
-
simde_assert_vec_i_close(a, b, precision, simde__m128i, u8, PRIu8)
|
148
|
-
#define simde_assert_m128i_u16_close(a, b, precision) \
|
149
|
-
simde_assert_vec_i_close(a, b, precision, simde__m128i, u16, PRIu16)
|
150
|
-
#define simde_assert_m128i_u32_close(a, b, precision) \
|
151
|
-
simde_assert_vec_i_close(a, b, precision, simde__m128i, u32, PRIu32)
|
152
|
-
#define simde_assert_m128i_u64_close(a, b, precision) \
|
153
|
-
simde_assert_vec_i_close(a, b, precision, simde__m128i, u64, PRIu64)
|
154
|
-
#define simde_assert_m256i_i8_close(a, b, precision) \
|
155
|
-
simde_assert_vec_i_close(a, b, precision, simde__m256i, i8, PRId8)
|
156
|
-
#define simde_assert_m256i_i16_close(a, b, precision) \
|
157
|
-
simde_assert_vec_i_close(a, b, precision, simde__m256i, i16, PRId16)
|
158
|
-
#define simde_assert_m256i_i32_close(a, b, precision) \
|
159
|
-
simde_assert_vec_i_close(a, b, precision, simde__m256i, i32, PRId32)
|
160
|
-
#define simde_assert_m256i_i64_close(a, b, precision) \
|
161
|
-
simde_assert_vec_i_close(a, b, precision, simde__m256i, i64, PRId64)
|
162
|
-
#define simde_assert_m256i_u8_close(a, b, precision) \
|
163
|
-
simde_assert_vec_i_close(a, b, precision, simde__m256i, u8, PRIu8)
|
164
|
-
#define simde_assert_m256i_u16_close(a, b, precision) \
|
165
|
-
simde_assert_vec_i_close(a, b, precision, simde__m256i, u16, PRIu16)
|
166
|
-
#define simde_assert_m256i_u32_close(a, b, precision) \
|
167
|
-
simde_assert_vec_i_close(a, b, precision, simde__m256i, u32, PRIu32)
|
168
|
-
#define simde_assert_m256i_u64_close(a, b, precision) \
|
169
|
-
simde_assert_vec_i_close(a, b, precision, simde__m256i, u64, PRIu64)
|
170
|
-
|
171
|
-
HEDLEY_BEGIN_C_DECLS
|
172
|
-
|
173
|
-
#define SIMDE_TESTS_GENERATE_SUITE_GETTERS(isax) \
|
174
|
-
MunitSuite* SIMDE_TESTS_GENERATE_SYMBOL_FULL(suite, SIMDE_TESTS_CURRENT_ARCH, isax, native, c)(void); \
|
175
|
-
MunitSuite* SIMDE_TESTS_GENERATE_SYMBOL_FULL(suite, SIMDE_TESTS_CURRENT_ARCH, isax, native, cpp)(void); \
|
176
|
-
MunitSuite* SIMDE_TESTS_GENERATE_SYMBOL_FULL(suite, SIMDE_TESTS_CURRENT_ARCH, isax, emul, c)(void); \
|
177
|
-
MunitSuite* SIMDE_TESTS_GENERATE_SYMBOL_FULL(suite, SIMDE_TESTS_CURRENT_ARCH, isax, emul, cpp)(void)
|
178
|
-
|
179
|
-
SIMDE_TESTS_GENERATE_SUITE_GETTERS(mmx);
|
180
|
-
SIMDE_TESTS_GENERATE_SUITE_GETTERS(sse);
|
181
|
-
SIMDE_TESTS_GENERATE_SUITE_GETTERS(sse2);
|
182
|
-
SIMDE_TESTS_GENERATE_SUITE_GETTERS(sse3);
|
183
|
-
SIMDE_TESTS_GENERATE_SUITE_GETTERS(ssse3);
|
184
|
-
SIMDE_TESTS_GENERATE_SUITE_GETTERS(sse4_1);
|
185
|
-
SIMDE_TESTS_GENERATE_SUITE_GETTERS(sse4_2);
|
186
|
-
SIMDE_TESTS_GENERATE_SUITE_GETTERS(avx);
|
187
|
-
SIMDE_TESTS_GENERATE_SUITE_GETTERS(fma);
|
188
|
-
SIMDE_TESTS_GENERATE_SUITE_GETTERS(avx2);
|
189
|
-
SIMDE_TESTS_GENERATE_SUITE_GETTERS(avx512f);
|
190
|
-
SIMDE_TESTS_GENERATE_SUITE_GETTERS(avx512bw);
|
191
|
-
SIMDE_TESTS_GENERATE_SUITE_GETTERS(avx512vl);
|
192
|
-
SIMDE_TESTS_GENERATE_SUITE_GETTERS(svml);
|
193
|
-
|
194
|
-
HEDLEY_END_C_DECLS
|
195
|
-
|
196
|
-
#endif /* !defined(SIMDE_TESTS_X86_INTERNAL_H) */
|
@@ -1,48 +0,0 @@
|
|
1
|
-
#include "test-x86.h"
|
2
|
-
#include "test-x86-internal.h"
|
3
|
-
|
4
|
-
#include <stdio.h>
|
5
|
-
|
6
|
-
#if defined(SIMDE_BUILD_CPP_TESTS)
|
7
|
-
#define SUITES_PER_ISAX 4
|
8
|
-
#define SET_CHILDREN_FOR_ARCH(isax) \
|
9
|
-
children[i++] = *SIMDE_TESTS_GENERATE_SYMBOL_FULL(suite, SIMDE_TESTS_CURRENT_ARCH, isax, native, c)(); \
|
10
|
-
children[i++] = *SIMDE_TESTS_GENERATE_SYMBOL_FULL(suite, SIMDE_TESTS_CURRENT_ARCH, isax, emul, c)(); \
|
11
|
-
children[i++] = *SIMDE_TESTS_GENERATE_SYMBOL_FULL(suite, SIMDE_TESTS_CURRENT_ARCH, isax, native, cpp)(); \
|
12
|
-
children[i++] = *SIMDE_TESTS_GENERATE_SYMBOL_FULL(suite, SIMDE_TESTS_CURRENT_ARCH, isax, emul, cpp)()
|
13
|
-
#else
|
14
|
-
#define SUITES_PER_ISAX 2
|
15
|
-
#define SET_CHILDREN_FOR_ARCH(isax) \
|
16
|
-
children[i++] = *SIMDE_TESTS_GENERATE_SYMBOL_FULL(suite, SIMDE_TESTS_CURRENT_ARCH, isax, native, c)(); \
|
17
|
-
children[i++] = *SIMDE_TESTS_GENERATE_SYMBOL_FULL(suite, SIMDE_TESTS_CURRENT_ARCH, isax, emul, c)()
|
18
|
-
#endif
|
19
|
-
|
20
|
-
MunitSuite*
|
21
|
-
simde_tests_x86_get_suite(void) {
|
22
|
-
static MunitSuite children[(14 * SUITES_PER_ISAX) + 1];
|
23
|
-
static MunitSuite suite = { "/x86", NULL, children, 1, MUNIT_SUITE_OPTION_NONE };
|
24
|
-
static const MunitSuite empty = { NULL, NULL, NULL, 1, MUNIT_SUITE_OPTION_NONE };
|
25
|
-
|
26
|
-
size_t i = 0;
|
27
|
-
|
28
|
-
SET_CHILDREN_FOR_ARCH(mmx);
|
29
|
-
SET_CHILDREN_FOR_ARCH(sse);
|
30
|
-
SET_CHILDREN_FOR_ARCH(sse2);
|
31
|
-
SET_CHILDREN_FOR_ARCH(sse3);
|
32
|
-
SET_CHILDREN_FOR_ARCH(ssse3);
|
33
|
-
SET_CHILDREN_FOR_ARCH(sse4_1);
|
34
|
-
SET_CHILDREN_FOR_ARCH(sse4_2);
|
35
|
-
SET_CHILDREN_FOR_ARCH(avx);
|
36
|
-
SET_CHILDREN_FOR_ARCH(fma);
|
37
|
-
SET_CHILDREN_FOR_ARCH(avx2);
|
38
|
-
SET_CHILDREN_FOR_ARCH(avx512f);
|
39
|
-
SET_CHILDREN_FOR_ARCH(avx512bw);
|
40
|
-
SET_CHILDREN_FOR_ARCH(avx512vl);
|
41
|
-
SET_CHILDREN_FOR_ARCH(svml);
|
42
|
-
|
43
|
-
children[i++] = empty;
|
44
|
-
|
45
|
-
munit_assert_size(i, <=, sizeof(children) / sizeof(children[0]));
|
46
|
-
|
47
|
-
return &suite;
|
48
|
-
}
|