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.
Files changed (109) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -0
  3. data/ext/Rakefile +2 -2
  4. data/ext/minimap2/NEWS.md +9 -0
  5. data/ext/minimap2/README.md +2 -2
  6. data/ext/minimap2/cookbook.md +2 -2
  7. data/ext/minimap2/minimap.h +1 -1
  8. data/ext/minimap2/minimap2.1 +1 -1
  9. data/ext/minimap2/misc/paftools.js +1 -1
  10. data/ext/minimap2/python/mappy.pyx +1 -1
  11. data/ext/minimap2/setup.py +22 -32
  12. data/lib/minimap2/version.rb +1 -1
  13. metadata +1 -97
  14. data/ext/minimap2/lib/simde/CONTRIBUTING.md +0 -114
  15. data/ext/minimap2/lib/simde/COPYING +0 -20
  16. data/ext/minimap2/lib/simde/README.md +0 -333
  17. data/ext/minimap2/lib/simde/amalgamate.py +0 -58
  18. data/ext/minimap2/lib/simde/meson.build +0 -33
  19. data/ext/minimap2/lib/simde/netlify.toml +0 -20
  20. data/ext/minimap2/lib/simde/simde/arm/neon/float32x2.h +0 -140
  21. data/ext/minimap2/lib/simde/simde/arm/neon/float32x4.h +0 -137
  22. data/ext/minimap2/lib/simde/simde/arm/neon/float64x1.h +0 -142
  23. data/ext/minimap2/lib/simde/simde/arm/neon/float64x2.h +0 -145
  24. data/ext/minimap2/lib/simde/simde/arm/neon/int16x4.h +0 -140
  25. data/ext/minimap2/lib/simde/simde/arm/neon/int16x8.h +0 -145
  26. data/ext/minimap2/lib/simde/simde/arm/neon/int32x2.h +0 -140
  27. data/ext/minimap2/lib/simde/simde/arm/neon/int32x4.h +0 -143
  28. data/ext/minimap2/lib/simde/simde/arm/neon/int64x1.h +0 -137
  29. data/ext/minimap2/lib/simde/simde/arm/neon/int64x2.h +0 -141
  30. data/ext/minimap2/lib/simde/simde/arm/neon/int8x16.h +0 -147
  31. data/ext/minimap2/lib/simde/simde/arm/neon/int8x8.h +0 -141
  32. data/ext/minimap2/lib/simde/simde/arm/neon/uint16x4.h +0 -134
  33. data/ext/minimap2/lib/simde/simde/arm/neon/uint16x8.h +0 -138
  34. data/ext/minimap2/lib/simde/simde/arm/neon/uint32x2.h +0 -134
  35. data/ext/minimap2/lib/simde/simde/arm/neon/uint32x4.h +0 -137
  36. data/ext/minimap2/lib/simde/simde/arm/neon/uint64x1.h +0 -131
  37. data/ext/minimap2/lib/simde/simde/arm/neon/uint64x2.h +0 -135
  38. data/ext/minimap2/lib/simde/simde/arm/neon/uint8x16.h +0 -141
  39. data/ext/minimap2/lib/simde/simde/arm/neon/uint8x8.h +0 -135
  40. data/ext/minimap2/lib/simde/simde/arm/neon.h +0 -97
  41. data/ext/minimap2/lib/simde/simde/check.h +0 -267
  42. data/ext/minimap2/lib/simde/simde/debug-trap.h +0 -83
  43. data/ext/minimap2/lib/simde/simde/hedley.h +0 -1899
  44. data/ext/minimap2/lib/simde/simde/simde-arch.h +0 -445
  45. data/ext/minimap2/lib/simde/simde/simde-common.h +0 -697
  46. data/ext/minimap2/lib/simde/simde/x86/avx.h +0 -5385
  47. data/ext/minimap2/lib/simde/simde/x86/avx2.h +0 -2402
  48. data/ext/minimap2/lib/simde/simde/x86/avx512bw.h +0 -391
  49. data/ext/minimap2/lib/simde/simde/x86/avx512f.h +0 -3389
  50. data/ext/minimap2/lib/simde/simde/x86/avx512vl.h +0 -112
  51. data/ext/minimap2/lib/simde/simde/x86/fma.h +0 -659
  52. data/ext/minimap2/lib/simde/simde/x86/mmx.h +0 -2210
  53. data/ext/minimap2/lib/simde/simde/x86/sse.h +0 -3696
  54. data/ext/minimap2/lib/simde/simde/x86/sse2.h +0 -5991
  55. data/ext/minimap2/lib/simde/simde/x86/sse3.h +0 -343
  56. data/ext/minimap2/lib/simde/simde/x86/sse4.1.h +0 -1783
  57. data/ext/minimap2/lib/simde/simde/x86/sse4.2.h +0 -105
  58. data/ext/minimap2/lib/simde/simde/x86/ssse3.h +0 -1053
  59. data/ext/minimap2/lib/simde/simde/x86/svml.h +0 -543
  60. data/ext/minimap2/lib/simde/test/CMakeLists.txt +0 -166
  61. data/ext/minimap2/lib/simde/test/arm/meson.build +0 -4
  62. data/ext/minimap2/lib/simde/test/arm/neon/meson.build +0 -23
  63. data/ext/minimap2/lib/simde/test/arm/neon/skel.c +0 -871
  64. data/ext/minimap2/lib/simde/test/arm/neon/test-neon-internal.h +0 -134
  65. data/ext/minimap2/lib/simde/test/arm/neon/test-neon.c +0 -39
  66. data/ext/minimap2/lib/simde/test/arm/neon/test-neon.h +0 -10
  67. data/ext/minimap2/lib/simde/test/arm/neon/vadd.c +0 -1260
  68. data/ext/minimap2/lib/simde/test/arm/neon/vdup_n.c +0 -873
  69. data/ext/minimap2/lib/simde/test/arm/neon/vmul.c +0 -1084
  70. data/ext/minimap2/lib/simde/test/arm/neon/vsub.c +0 -1260
  71. data/ext/minimap2/lib/simde/test/arm/test-arm-internal.h +0 -18
  72. data/ext/minimap2/lib/simde/test/arm/test-arm.c +0 -20
  73. data/ext/minimap2/lib/simde/test/arm/test-arm.h +0 -8
  74. data/ext/minimap2/lib/simde/test/cmake/AddCompilerFlags.cmake +0 -171
  75. data/ext/minimap2/lib/simde/test/cmake/ExtraWarningFlags.cmake +0 -68
  76. data/ext/minimap2/lib/simde/test/meson.build +0 -64
  77. data/ext/minimap2/lib/simde/test/munit/COPYING +0 -21
  78. data/ext/minimap2/lib/simde/test/munit/Makefile +0 -55
  79. data/ext/minimap2/lib/simde/test/munit/README.md +0 -54
  80. data/ext/minimap2/lib/simde/test/munit/example.c +0 -351
  81. data/ext/minimap2/lib/simde/test/munit/meson.build +0 -37
  82. data/ext/minimap2/lib/simde/test/munit/munit.c +0 -2055
  83. data/ext/minimap2/lib/simde/test/munit/munit.h +0 -535
  84. data/ext/minimap2/lib/simde/test/run-tests.c +0 -20
  85. data/ext/minimap2/lib/simde/test/run-tests.h +0 -260
  86. data/ext/minimap2/lib/simde/test/x86/avx.c +0 -13752
  87. data/ext/minimap2/lib/simde/test/x86/avx2.c +0 -9977
  88. data/ext/minimap2/lib/simde/test/x86/avx512bw.c +0 -2664
  89. data/ext/minimap2/lib/simde/test/x86/avx512f.c +0 -10416
  90. data/ext/minimap2/lib/simde/test/x86/avx512vl.c +0 -210
  91. data/ext/minimap2/lib/simde/test/x86/fma.c +0 -2557
  92. data/ext/minimap2/lib/simde/test/x86/meson.build +0 -33
  93. data/ext/minimap2/lib/simde/test/x86/mmx.c +0 -2878
  94. data/ext/minimap2/lib/simde/test/x86/skel.c +0 -2984
  95. data/ext/minimap2/lib/simde/test/x86/sse.c +0 -5121
  96. data/ext/minimap2/lib/simde/test/x86/sse2.c +0 -9860
  97. data/ext/minimap2/lib/simde/test/x86/sse3.c +0 -486
  98. data/ext/minimap2/lib/simde/test/x86/sse4.1.c +0 -3446
  99. data/ext/minimap2/lib/simde/test/x86/sse4.2.c +0 -101
  100. data/ext/minimap2/lib/simde/test/x86/ssse3.c +0 -2084
  101. data/ext/minimap2/lib/simde/test/x86/svml.c +0 -1545
  102. data/ext/minimap2/lib/simde/test/x86/test-avx.h +0 -16
  103. data/ext/minimap2/lib/simde/test/x86/test-avx512.h +0 -25
  104. data/ext/minimap2/lib/simde/test/x86/test-mmx.h +0 -13
  105. data/ext/minimap2/lib/simde/test/x86/test-sse.h +0 -13
  106. data/ext/minimap2/lib/simde/test/x86/test-sse2.h +0 -13
  107. data/ext/minimap2/lib/simde/test/x86/test-x86-internal.h +0 -196
  108. data/ext/minimap2/lib/simde/test/x86/test-x86.c +0 -48
  109. data/ext/minimap2/lib/simde/test/x86/test-x86.h +0 -8
@@ -1,260 +0,0 @@
1
- #if !defined(SIMDE_RUN_TESTS_H)
2
- #define SIMDE_RUN_TESTS_H
3
-
4
- #include "../simde/hedley.h"
5
- #include "munit/munit.h"
6
- #include "../simde/simde-common.h"
7
-
8
- #include <stdio.h>
9
- #include <math.h>
10
-
11
- SIMDE_DISABLE_UNWANTED_DIAGNOSTICS
12
-
13
- #if defined(HEDLEY_MSVC_VERSION)
14
- /* Unused function(s) */
15
- #pragma warning(disable:4505)
16
- #endif
17
-
18
- HEDLEY_DIAGNOSTIC_PUSH
19
-
20
- #define SIMDE_TESTS_CONCAT3_EX(a, b, c) a##b##c
21
- #define SIMDE_TESTS_CONCAT3(a, b, c) SIMDE_TESTS_CONCAT3_EX(a, b, c)
22
-
23
- #if defined(__cplusplus)
24
- # define SIMDE_TESTS_CURRENT_LANG cpp
25
- #else
26
- # define SIMDE_TESTS_CURRENT_LANG c
27
- #endif
28
-
29
- #if defined(SIMDE_NO_NATIVE)
30
- # define SIMDE_TESTS_CURRENT_NATIVE emul
31
- #else
32
- # define SIMDE_TESTS_CURRENT_NATIVE native
33
- #endif
34
-
35
- #define SIMDE_TESTS_GENERATE_SYMBOL_FULL(sym, arch, isa, native, lang) \
36
- HEDLEY_CONCAT(HEDLEY_CONCAT(HEDLEY_CONCAT(HEDLEY_CONCAT(HEDLEY_CONCAT(HEDLEY_CONCAT(HEDLEY_CONCAT(HEDLEY_CONCAT(simde_tests_, HEDLEY_CONCAT(arch, _)), isa), _), native), _), lang),_),sym)
37
-
38
- #define SIMDE_TESTS_GENERATE_SYMBOL(sym) \
39
- SIMDE_TESTS_GENERATE_SYMBOL_FULL(sym, SIMDE_TESTS_CURRENT_ARCH, SIMDE_TESTS_CURRENT_ISAX, SIMDE_TESTS_CURRENT_NATIVE, SIMDE_TESTS_CURRENT_LANG)
40
-
41
- #if defined(SIMDE_BUILD_CPP_TESTS)
42
- #define SIMDE_TESTS_GENERATE_NAME(name) \
43
- "/" HEDLEY_STRINGIFY(name) "/" HEDLEY_STRINGIFY(SIMDE_TESTS_CURRENT_NATIVE) "/" HEDLEY_STRINGIFY(SIMDE_TESTS_CURRENT_LANG)
44
- #else
45
- #define SIMDE_TESTS_GENERATE_NAME(name) \
46
- "/" HEDLEY_STRINGIFY(name) "/" HEDLEY_STRINGIFY(SIMDE_TESTS_CURRENT_NATIVE)
47
- #endif
48
-
49
- #define SIMDE_TESTS_DEFINE_TEST(name) \
50
- { (char*) SIMDE_TESTS_GENERATE_NAME(name), test_simde_##name, NULL, NULL, MUNIT_TEST_OPTION_NONE, NULL }
51
-
52
- HEDLEY_BEGIN_C_DECLS
53
-
54
- #if !defined(HEDLEY_PGI_VERSION)
55
- # define SIMDE_ALMOST_EQUAL_TO "≈"
56
- #else
57
- # define SIMDE_ALMOST_EQUAL_TO "~=~"
58
- #endif
59
-
60
- SIMDE__FUNCTION_POSSIBLY_UNUSED
61
- static int
62
- simde_check_double_close(double a, double b, int precision) {
63
- const double r = 1.0 * pow(10, HEDLEY_STATIC_CAST(double, precision));
64
- return
65
- HEDLEY_UNLIKELY(a < (b - r)) ||
66
- HEDLEY_UNLIKELY(a > (b + r));
67
- }
68
-
69
- #define SIMDE_TEST_DEFINE_ASSERT_VEC_CLOSE(VT, accessor) \
70
- HEDLEY_ALWAYS_INLINE \
71
- static void \
72
- simde_assert_##VT##_##accessor##_close_ex(int line, const char* file, simde__##VT a, simde__##VT b, int precision) { \
73
- simde__##VT##_private \
74
- a_ = simde__##VT##_to_private(a), \
75
- b_ = simde__##VT##_to_private(b); \
76
- \
77
- for (int i = 0 ; i < HEDLEY_STATIC_CAST(int, sizeof(a_.accessor) / sizeof(a_.accessor[0])) ; i++) { \
78
- if (simde_check_double_close(HEDLEY_STATIC_CAST(double, a_.accessor[i]), HEDLEY_STATIC_CAST(double, b_.accessor[i]), precision)) { \
79
- fprintf(stderr, "%s:%d: assertion failed[%d]: %g " SIMDE_ALMOST_EQUAL_TO " %g (precision: 1e-%d)\n", file, line, i, a_.accessor[i], b_.accessor[i], precision); \
80
- abort(); \
81
- } \
82
- } \
83
- }
84
-
85
- SIMDE__FUNCTION_POSSIBLY_UNUSED
86
- static void random_f32v(size_t nmemb, simde_float32 v[HEDLEY_ARRAY_PARAM(nmemb)]) {
87
- for (size_t i = 0 ; i < nmemb ; i++) {
88
- do {
89
- munit_rand_memory(sizeof(v[i]), HEDLEY_REINTERPRET_CAST(uint8_t*, &(v[i])));
90
- } while (!isnormal(v[i]));
91
- }
92
- }
93
-
94
- SIMDE__FUNCTION_POSSIBLY_UNUSED
95
- static simde_float64 random_f64_range(simde_float64 min, simde_float64 max) {
96
- const simde_float64 range = max - min;
97
- simde_float64 x = HEDLEY_STATIC_CAST(simde_float64, munit_rand_uint32());
98
- x /= HEDLEY_STATIC_CAST(simde_float64, UINT32_MAX) / range;
99
- x += min;
100
- return x;
101
- }
102
-
103
- SIMDE__FUNCTION_POSSIBLY_UNUSED
104
- static simde_float32 random_f32_range(simde_float32 min, simde_float32 max) {
105
- return HEDLEY_STATIC_CAST(simde_float32, random_f64_range(HEDLEY_STATIC_CAST(double, min), HEDLEY_STATIC_CAST(double, max)));
106
- }
107
-
108
- SIMDE__FUNCTION_POSSIBLY_UNUSED
109
- static void random_f64v(size_t nmemb, simde_float64 v[HEDLEY_ARRAY_PARAM(nmemb)]) {
110
- for (size_t i = 0 ; i < nmemb ; i++) {
111
- do {
112
- munit_rand_memory(sizeof(v[i]), HEDLEY_REINTERPRET_CAST(uint8_t*, &(v[i])));
113
- } while (!isnormal(v[i]));
114
- }
115
- }
116
-
117
- #define random_intv_range(T, nmemb, v, min, max) \
118
- do { \
119
- for (size_t simde_tmp_i_ = 0 ; simde_tmp_i_ < nmemb ; simde_tmp_i_++) { \
120
- ((T*) (v))[simde_tmp_i_] = munit_rand_int_range(min, max); \
121
- } \
122
- } while (0)
123
-
124
- #define TEST_PREFERRED_ITERATIONS (256)
125
-
126
- /* I'll probably move these into µnit, but I want to play around with
127
- them for a while first. */
128
-
129
- #define simde_assert_array_full(prefix, suffix, T, fmt, nmemb, a, op, b) \
130
- do { \
131
- const T* simde__tmp_a_ = (a); \
132
- const T* simde__tmp_b_ = (b); \
133
- for (size_t simde__i_ = 0 ; simde__i_ < nmemb ; simde__i_++) { \
134
- if (!(simde__tmp_a_[simde__i_] op simde__tmp_b_[simde__i_])) { \
135
- munit_errorf("assertion failed: (" #a ")[%" MUNIT_SIZE_MODIFIER "u] " #op " (" #b ")[%" MUNIT_SIZE_MODIFIER "u] (" prefix "%" fmt suffix " " #op " " prefix "%" fmt suffix ")", simde__i_, simde__i_, simde__tmp_a_[simde__i_], simde__tmp_b_[simde__i_]); \
136
- } \
137
- } \
138
- } while (0)
139
-
140
- #define simde_assert_typev(T, fmt, nmemb, a, op, b) \
141
- simde_assert_array_full("", "", T, fmt, nmemb, a, op, b)
142
-
143
- #define simde_assert_f32v(nmemb, a, op, b) \
144
- simde_assert_typev(simde_float32, "g", nmemb, a, op, b)
145
-
146
- #define simde_assert_intv(nmemb, a, op, b) \
147
- simde_assert_typev(int, "d", nmemb, a, op, b)
148
-
149
- #define simde_assert_uintv(nmemb, a, op, b) \
150
- simde_assert_typev(int, "u", nmemb, a, op, b)
151
-
152
- #define simde_assert_int8v(nmemb, a, op, b) \
153
- simde_assert_array_full("", "", munit_int8_t, PRId8, nmemb, a, op, b)
154
- #define simde_assert_uint8v(nmemb, a, op, b) \
155
- simde_assert_array_full("", "", munit_uint8_t, PRIu8, nmemb, a, op, b)
156
- #define simde_assert_int16v(nmemb, a, op, b) \
157
- simde_assert_array_full("", "", munit_int16_t, PRId16, nmemb, a, op, b)
158
- #define simde_assert_uint16v(nmemb, a, op, b) \
159
- simde_assert_array_full("", "", munit_uint16_t, PRIu16, nmemb, a, op, b)
160
- #define simde_assert_int32v(nmemb, a, op, b) \
161
- simde_assert_array_full("", "", munit_int32_t, PRId32, nmemb, a, op, b)
162
- #define simde_assert_uint32v(nmemb, a, op, b) \
163
- simde_assert_array_full("", "", munit_uint32_t, PRIu32, nmemb, a, op, b)
164
- #define simde_assert_int64v(nmemb, a, op, b) \
165
- simde_assert_array_full("", "", munit_int64_t, PRId64, nmemb, a, op, b)
166
- #define simde_assert_uint64v(nmemb, a, op, b) \
167
- simde_assert_array_full("", "", munit_uint64_t, PRIu64, nmemb, a, op, b)
168
-
169
- #define simde_assert_f32v_equal(T, nmemb, a, b, precision) \
170
- do { \
171
- const T* simde_tmp_a_ = (a); \
172
- const T* simde_tmp_b_ = (b); \
173
- for (size_t simde_i_ = 0 ; simde_i_ < nmemb ; simde_i_++) { \
174
- const T simde_tmp_diff_ = ((simde_tmp_a_[simde_i_] - simde_tmp_b_[simde_i_]) < 0) ? \
175
- (simde_tmp_b_[simde_i_] - simde_tmp_a_[simde_i_]) : \
176
- (simde_tmp_a_[simde_i_] - simde_tmp_b_[simde_i_]); \
177
- if (MUNIT_UNLIKELY(simde_tmp_diff_ > 1e-##precision)) { \
178
- munit_errorf("assertion failed: (" #a ")[%" MUNIT_SIZE_MODIFIER "u] == (" #b ")[%" MUNIT_SIZE_MODIFIER "u] (%." #precision "f == %." #precision "f)", simde_i_, simde_i_, simde_tmp_a_[simde_i_], simde_tmp_b_[simde_i_]); \
179
- } \
180
- } \
181
- } while (0)
182
-
183
- #define simde_assert_f32v_close(T, nmemb, a, b, precision) \
184
- do { \
185
- const T* simde_tmp_a_ = (a); \
186
- const T* simde_tmp_b_ = (b); \
187
- for (size_t simde_i_ = 0 ; simde_i_ < nmemb ; simde_i_++) { \
188
- const T simde_tmp_diff_ = ((simde_tmp_a_[simde_i_] - simde_tmp_b_[simde_i_]) < 0) ? \
189
- (simde_tmp_b_[simde_i_] - simde_tmp_a_[simde_i_]) : \
190
- (simde_tmp_a_[simde_i_] - simde_tmp_b_[simde_i_]); \
191
- if (MUNIT_UNLIKELY(simde_tmp_diff_ > precision)) { \
192
- munit_errorf("assertion failed: (" #a ")[%" MUNIT_SIZE_MODIFIER "u] == (" #b ")[%" MUNIT_SIZE_MODIFIER "u] (%" #precision ".1f == %" #precision ".1f)", simde_i_, simde_i_, simde_tmp_a_[simde_i_], simde_tmp_b_[simde_i_]); \
193
- } \
194
- } \
195
- } while (0)
196
-
197
- #define simde_assert_f64v_close(T, nmemb, a, b, precision) \
198
- do { \
199
- const T* simde_tmp_a_ = (a); \
200
- const T* simde_tmp_b_ = (b); \
201
- for (size_t simde_i_ = 0 ; simde_i_ < nmemb ; simde_i_++) { \
202
- const T simde_tmp_diff_ = ((simde_tmp_a_[simde_i_] - simde_tmp_b_[simde_i_]) < 0) ? \
203
- (simde_tmp_b_[simde_i_] - simde_tmp_a_[simde_i_]) : \
204
- (simde_tmp_a_[simde_i_] - simde_tmp_b_[simde_i_]); \
205
- if (MUNIT_UNLIKELY(simde_tmp_diff_ > precision)) { \
206
- munit_errorf("assertion failed: (" #a ")[%" MUNIT_SIZE_MODIFIER "u] == (" #b ")[%" MUNIT_SIZE_MODIFIER "u] (%" #precision ".1f == %" #precision ".1f)", simde_i_, simde_i_, simde_tmp_a_[simde_i_], simde_tmp_b_[simde_i_]); \
207
- } \
208
- } \
209
- } while (0)
210
-
211
- /* These probably won't go into µnit; they're similar to the
212
- simde_assert_*v macros above, but print in hex. */
213
-
214
- #define simde_assert_int8vx(nmemb, a, op, b) \
215
- simde_assert_array_full("0x", "", munit_int8_t, "02" PRIx8, nmemb, a, op, b)
216
- #define simde_assert_uint8vx(nmemb, a, op, b) \
217
- simde_assert_array_full("0x", "", munit_uint8_t, "02" PRIx8, nmemb, a, op, b)
218
- #define simde_assert_int16vx(nmemb, a, op, b) \
219
- simde_assert_array_full("0x", "", munit_int16_t, "04" PRIx16, nmemb, a, op, b)
220
- #define simde_assert_uint16vx(nmemb, a, op, b) \
221
- simde_assert_array_full("0x", "", munit_uint16_t, "04" PRIx16, nmemb, a, op, b)
222
- #define simde_assert_int32vx(nmemb, a, op, b) \
223
- simde_assert_array_full("0x", "", munit_int32_t, "08" PRIx32, nmemb, a, op, b)
224
- #define simde_assert_uint32vx(nmemb, a, op, b) \
225
- simde_assert_array_full("0x", "", munit_uint32_t, "08" PRIx32, nmemb, a, op, b)
226
- #define simde_assert_int64vx(nmemb, a, op, b) \
227
- simde_assert_array_full("0x", "", munit_int64_t, "016" PRIx64, nmemb, a, op, b)
228
- #define simde_assert_uint64vx(nmemb, a, op, b) \
229
- simde_assert_array_full("0x", "", munit_uint64_t, "016" PRIx64, nmemb, a, op, b)
230
-
231
- #define simde_assert_int32_close(value, target) \
232
- do { \
233
- if (value != target && value != target + 1 && value != target - 1) \
234
- munit_errorf("assertion failed: %s == %s (%" PRId32 " == %" PRId32 ")", #value, #target, value, target); \
235
- } while (0)
236
-
237
- #define simde_assert_int64_close(value, target) \
238
- do { \
239
- if (value != target && value != target + 1 && value != target - 1) \
240
- munit_errorf("assertion failed: %s == %s (%" PRId64 " == %" PRId64 ")", #value, #target, value, target); \
241
- } while (0)
242
-
243
- HEDLEY_END_C_DECLS
244
-
245
- HEDLEY_DIAGNOSTIC_POP
246
-
247
- #if HEDLEY_HAS_WARNING("-Wpadded")
248
- # pragma clang diagnostic ignored "-Wpadded"
249
- #elif defined(HEDLEY_MSVC_VERSION)
250
- # pragma warning(disable:4324)
251
- #endif
252
-
253
- #if defined(HEDLEY_MSVC_VERSION)
254
- /* nonstandard extension used : non-lvalue array converted to pointer */
255
- #pragma warning(disable:4223)
256
- /* Conditional expression is a constant */
257
- #pragma warning(disable:4127)
258
- #endif
259
-
260
- #endif /* !defined(SIMDE_RUN_TESTS_H) */