| 1 |
/* SPDX-License-Identifier: MIT |
| 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 |
* Copyright: |
| 24 |
* 2021 Evan Nemerson <[email protected]> |
| 25 |
*/ |
| 26 |
|
| 27 |
#if !defined(SIMDE_ARM_SVE_AND_H) |
| 28 |
#define SIMDE_ARM_SVE_AND_H |
| 29 |
|
| 30 |
#include "types.h" |
| 31 |
#include "dup.h" |
| 32 |
|
| 33 |
HEDLEY_DIAGNOSTIC_PUSH |
| 34 |
SIMDE_DISABLE_UNWANTED_DIAGNOSTICS |
| 35 |
|
| 36 |
SIMDE_FUNCTION_ATTRIBUTES |
| 37 |
simde_svint8_t |
| 38 |
simde_svand_s8_x(simde_svbool_t pg, simde_svint8_t op1, simde_svint8_t op2) { |
| 39 |
#if defined(SIMDE_ARM_SVE_NATIVE) |
| 40 |
return svand_s8_x(pg, op1, op2); |
| 41 |
#else |
| 42 |
simde_svint8_t r; |
| 43 |
HEDLEY_STATIC_CAST(void, pg); |
| 44 |
|
| 45 |
#if defined(SIMDE_ARM_NEON_A32V7_NATIVE) |
| 46 |
r.neon = vandq_s8(op1.neon, op2.neon); |
| 47 |
#elif defined(SIMDE_X86_AVX512BW_NATIVE) && (SIMDE_ARM_SVE_VECTOR_SIZE >= 512) |
| 48 |
r.m512i = _mm512_and_si512(op1.m512i, op2.m512i); |
| 49 |
#elif defined(SIMDE_X86_AVX512BW_NATIVE) && defined(SIMDE_X86_AVX512VL_NATIVE) |
| 50 |
r.m256i[0] = _mm256_and_si256(op1.m256i[0], op2.m256i[0]); |
| 51 |
#elif defined(SIMDE_X86_AVX2_NATIVE) |
| 52 |
for (int i = 0 ; i < HEDLEY_STATIC_CAST(int, sizeof(r.m256i) / sizeof(r.m256i[0])) ; i++) { |
| 53 |
r.m256i[i] = _mm256_and_si256(op1.m256i[i], op2.m256i[i]); |
| 54 |
} |
| 55 |
#elif defined(SIMDE_X86_SSE2_NATIVE) |
| 56 |
for (int i = 0 ; i < HEDLEY_STATIC_CAST(int, sizeof(r.m128i) / sizeof(r.m128i[0])) ; i++) { |
| 57 |
r.m128i[i] = _mm_and_si128(op1.m128i[i], op2.m128i[i]); |
| 58 |
} |
| 59 |
#elif defined(SIMDE_POWER_ALTIVEC_P6_NATIVE) |
| 60 |
r.altivec = vec_and(op1.altivec, op2.altivec); |
| 61 |
#elif defined(SIMDE_ZARCH_ZVECTOR_13_NATIVE) |
| 62 |
r.altivec = op1.altivec & op2.altivec; |
| 63 |
#elif defined(SIMDE_WASM_SIMD128_NATIVE) |
| 64 |
r.v128 = wasm_v128_and(op1.v128, op2.v128); |
| 65 |
#elif defined(SIMDE_VECTOR_SUBSCRIPT_OPS) |
| 66 |
r.values = op1.values & op2.values; |
| 67 |
#else |
| 68 |
SIMDE_VECTORIZE |
| 69 |
for (int i = 0 ; i < HEDLEY_STATIC_CAST(int, sizeof(r.values) / sizeof(r.values[0])) ; i++) { |
| 70 |
r.values[i] = op1.values[i] & op2.values[i]; |
| 71 |
} |
| 72 |
#endif |
| 73 |
|
| 74 |
return r; |
| 75 |
#endif |
| 76 |
} |
| 77 |
#if defined(SIMDE_ARM_SVE_ENABLE_NATIVE_ALIASES) |
| 78 |
#undef simde_svand_s8_x |
| 79 |
#define svand_s8_x(pg, op1, op2) simde_svand_s8_x(pg, op1, op2) |
| 80 |
#endif |
| 81 |
|
| 82 |
SIMDE_FUNCTION_ATTRIBUTES |
| 83 |
simde_svint8_t |
| 84 |
simde_svand_s8_z(simde_svbool_t pg, simde_svint8_t op1, simde_svint8_t op2) { |
| 85 |
#if defined(SIMDE_ARM_SVE_NATIVE) |
| 86 |
return svand_s8_z(pg, op1, op2); |
| 87 |
#else |
| 88 |
return simde_x_svsel_s8_z(pg, simde_svand_s8_x(pg, op1, op2)); |
| 89 |
#endif |
| 90 |
} |
| 91 |
#if defined(SIMDE_ARM_SVE_ENABLE_NATIVE_ALIASES) |
| 92 |
#undef simde_svand_s8_z |
| 93 |
#define svand_s8_z(pg, op1, op2) simde_svand_s8_z(pg, op1, op2) |
| 94 |
#endif |
| 95 |
|
| 96 |
SIMDE_FUNCTION_ATTRIBUTES |
| 97 |
simde_svint8_t |
| 98 |
simde_svand_s8_m(simde_svbool_t pg, simde_svint8_t op1, simde_svint8_t op2) { |
| 99 |
#if defined(SIMDE_ARM_SVE_NATIVE) |
| 100 |
return svand_s8_m(pg, op1, op2); |
| 101 |
#else |
| 102 |
return simde_svsel_s8(pg, simde_svand_s8_x(pg, op1, op2), op1); |
| 103 |
#endif |
| 104 |
} |
| 105 |
#if defined(SIMDE_ARM_SVE_ENABLE_NATIVE_ALIASES) |
| 106 |
#undef simde_svand_s8_m |
| 107 |
#define svand_s8_m(pg, op1, op2) simde_svand_s8_m(pg, op1, op2) |
| 108 |
#endif |
| 109 |
|
| 110 |
SIMDE_FUNCTION_ATTRIBUTES |
| 111 |
simde_svint8_t |
| 112 |
simde_svand_n_s8_z(simde_svbool_t pg, simde_svint8_t op1, int8_t op2) { |
| 113 |
#if defined(SIMDE_ARM_SVE_NATIVE) |
| 114 |
return svand_n_s8_z(pg, op1, op2); |
| 115 |
#else |
| 116 |
return simde_svand_s8_z(pg, op1, simde_svdup_n_s8(op2)); |
| 117 |
#endif |
| 118 |
} |
| 119 |
#if defined(SIMDE_ARM_SVE_ENABLE_NATIVE_ALIASES) |
| 120 |
#undef simde_svand_n_s8_z |
| 121 |
#define svand_n_s8_z(pg, op1, op2) simde_svand_n_s8_z(pg, op1, op2) |
| 122 |
#endif |
| 123 |
|
| 124 |
SIMDE_FUNCTION_ATTRIBUTES |
| 125 |
simde_svint8_t |
| 126 |
simde_svand_n_s8_m(simde_svbool_t pg, simde_svint8_t op1, int8_t op2) { |
| 127 |
#if defined(SIMDE_ARM_SVE_NATIVE) |
| 128 |
return svand_n_s8_m(pg, op1, op2); |
| 129 |
#else |
| 130 |
return simde_svand_s8_m(pg, op1, simde_svdup_n_s8(op2)); |
| 131 |
#endif |
| 132 |
} |
| 133 |
#if defined(SIMDE_ARM_SVE_ENABLE_NATIVE_ALIASES) |
| 134 |
#undef simde_svand_n_s8_m |
| 135 |
#define svand_n_s8_m(pg, op1, op2) simde_svand_n_s8_m(pg, op1, op2) |
| 136 |
#endif |
| 137 |
|
| 138 |
SIMDE_FUNCTION_ATTRIBUTES |
| 139 |
simde_svint8_t |
| 140 |
simde_svand_n_s8_x(simde_svbool_t pg, simde_svint8_t op1, int8_t op2) { |
| 141 |
#if defined(SIMDE_ARM_SVE_NATIVE) |
| 142 |
return svand_n_s8_x(pg, op1, op2); |
| 143 |
#else |
| 144 |
return simde_svand_s8_x(pg, op1, simde_svdup_n_s8(op2)); |
| 145 |
#endif |
| 146 |
} |
| 147 |
#if defined(SIMDE_ARM_SVE_ENABLE_NATIVE_ALIASES) |
| 148 |
#undef simde_svand_n_s8_x |
| 149 |
#define svand_n_s8_x(pg, op1, op2) simde_svand_n_s8_x(pg, op1, op2) |
| 150 |
#endif |
| 151 |
|
| 152 |
SIMDE_FUNCTION_ATTRIBUTES |
| 153 |
simde_svint16_t |
| 154 |
simde_svand_s16_x(simde_svbool_t pg, simde_svint16_t op1, simde_svint16_t op2) { |
| 155 |
#if defined(SIMDE_ARM_SVE_NATIVE) |
| 156 |
return svand_s16_x(pg, op1, op2); |
| 157 |
#else |
| 158 |
simde_svint16_t r; |
| 159 |
HEDLEY_STATIC_CAST(void, pg); |
| 160 |
|
| 161 |
#if defined(SIMDE_ARM_NEON_A32V7_NATIVE) |
| 162 |
r.neon = vandq_s16(op1.neon, op2.neon); |
| 163 |
#elif defined(SIMDE_X86_AVX512BW_NATIVE) && (SIMDE_ARM_SVE_VECTOR_SIZE >= 512) |
| 164 |
r.m512i = _mm512_and_si512(op1.m512i, op2.m512i); |
| 165 |
#elif defined(SIMDE_X86_AVX512BW_NATIVE) && defined(SIMDE_X86_AVX512VL_NATIVE) |
| 166 |
r.m256i[0] = _mm256_and_si256(op1.m256i[0], op2.m256i[0]); |
| 167 |
#elif defined(SIMDE_X86_AVX2_NATIVE) |
| 168 |
for (int i = 0 ; i < HEDLEY_STATIC_CAST(int, sizeof(r.m256i) / sizeof(r.m256i[0])) ; i++) { |
| 169 |
r.m256i[i] = _mm256_and_si256(op1.m256i[i], op2.m256i[i]); |
| 170 |
} |
| 171 |
#elif defined(SIMDE_X86_SSE2_NATIVE) |
| 172 |
for (int i = 0 ; i < HEDLEY_STATIC_CAST(int, sizeof(r.m128i) / sizeof(r.m128i[0])) ; i++) { |
| 173 |
r.m128i[i] = _mm_and_si128(op1.m128i[i], op2.m128i[i]); |
| 174 |
} |
| 175 |
#elif defined(SIMDE_POWER_ALTIVEC_P6_NATIVE) |
| 176 |
r.altivec = vec_and(op1.altivec, op2.altivec); |
| 177 |
#elif defined(SIMDE_ZARCH_ZVECTOR_13_NATIVE) |
| 178 |
r.altivec = op1.altivec & op2.altivec; |
| 179 |
#elif defined(SIMDE_WASM_SIMD128_NATIVE) |
| 180 |
r.v128 = wasm_v128_and(op1.v128, op2.v128); |
| 181 |
#elif defined(SIMDE_VECTOR_SUBSCRIPT_OPS) |
| 182 |
r.values = op1.values & op2.values; |
| 183 |
#else |
| 184 |
SIMDE_VECTORIZE |
| 185 |
for (int i = 0 ; i < HEDLEY_STATIC_CAST(int, sizeof(r.values) / sizeof(r.values[0])) ; i++) { |
| 186 |
r.values[i] = op1.values[i] & op2.values[i]; |
| 187 |
} |
| 188 |
#endif |
| 189 |
|
| 190 |
return r; |
| 191 |
#endif |
| 192 |
} |
| 193 |
#if defined(SIMDE_ARM_SVE_ENABLE_NATIVE_ALIASES) |
| 194 |
#undef simde_svand_s16_x |
| 195 |
#define svand_s16_x(pg, op1, op2) simde_svand_s16_x(pg, op1, op2) |
| 196 |
#endif |
| 197 |
|
| 198 |
SIMDE_FUNCTION_ATTRIBUTES |
| 199 |
simde_svint16_t |
| 200 |
simde_svand_s16_z(simde_svbool_t pg, simde_svint16_t op1, simde_svint16_t op2) { |
| 201 |
#if defined(SIMDE_ARM_SVE_NATIVE) |
| 202 |
return svand_s16_z(pg, op1, op2); |
| 203 |
#else |
| 204 |
return simde_x_svsel_s16_z(pg, simde_svand_s16_x(pg, op1, op2)); |
| 205 |
#endif |
| 206 |
} |
| 207 |
#if defined(SIMDE_ARM_SVE_ENABLE_NATIVE_ALIASES) |
| 208 |
#undef simde_svand_s16_z |
| 209 |
#define svand_s16_z(pg, op1, op2) simde_svand_s16_z(pg, op1, op2) |
| 210 |
#endif |
| 211 |
|
| 212 |
SIMDE_FUNCTION_ATTRIBUTES |
| 213 |
simde_svint16_t |
| 214 |
simde_svand_s16_m(simde_svbool_t pg, simde_svint16_t op1, simde_svint16_t op2) { |
| 215 |
#if defined(SIMDE_ARM_SVE_NATIVE) |
| 216 |
return svand_s16_m(pg, op1, op2); |
| 217 |
#else |
| 218 |
return simde_svsel_s16(pg, simde_svand_s16_x(pg, op1, op2), op1); |
| 219 |
#endif |
| 220 |
} |
| 221 |
#if defined(SIMDE_ARM_SVE_ENABLE_NATIVE_ALIASES) |
| 222 |
#undef simde_svand_s16_m |
| 223 |
#define svand_s16_m(pg, op1, op2) simde_svand_s16_m(pg, op1, op2) |
| 224 |
#endif |
| 225 |
|
| 226 |
SIMDE_FUNCTION_ATTRIBUTES |
| 227 |
simde_svint16_t |
| 228 |
simde_svand_n_s16_z(simde_svbool_t pg, simde_svint16_t op1, int16_t op2) { |
| 229 |
#if defined(SIMDE_ARM_SVE_NATIVE) |
| 230 |
return svand_n_s16_z(pg, op1, op2); |
| 231 |
#else |
| 232 |
return simde_svand_s16_z(pg, op1, simde_svdup_n_s16(op2)); |
| 233 |
#endif |
| 234 |
} |
| 235 |
#if defined(SIMDE_ARM_SVE_ENABLE_NATIVE_ALIASES) |
| 236 |
#undef simde_svand_n_s16_z |
| 237 |
#define svand_n_s16_z(pg, op1, op2) simde_svand_n_s16_z(pg, op1, op2) |
| 238 |
#endif |
| 239 |
|
| 240 |
SIMDE_FUNCTION_ATTRIBUTES |
| 241 |
simde_svint16_t |
| 242 |
simde_svand_n_s16_m(simde_svbool_t pg, simde_svint16_t op1, int16_t op2) { |
| 243 |
#if defined(SIMDE_ARM_SVE_NATIVE) |
| 244 |
return svand_n_s16_m(pg, op1, op2); |
| 245 |
#else |
| 246 |
return simde_svand_s16_m(pg, op1, simde_svdup_n_s16(op2)); |
| 247 |
#endif |
| 248 |
} |
| 249 |
#if defined(SIMDE_ARM_SVE_ENABLE_NATIVE_ALIASES) |
| 250 |
#undef simde_svand_n_s16_m |
| 251 |
#define svand_n_s16_m(pg, op1, op2) simde_svand_n_s16_m(pg, op1, op2) |
| 252 |
#endif |
| 253 |
|
| 254 |
SIMDE_FUNCTION_ATTRIBUTES |
| 255 |
simde_svint16_t |
| 256 |
simde_svand_n_s16_x(simde_svbool_t pg, simde_svint16_t op1, int16_t op2) { |
| 257 |
#if defined(SIMDE_ARM_SVE_NATIVE) |
| 258 |
return svand_n_s16_x(pg, op1, op2); |
| 259 |
#else |
| 260 |
return simde_svand_s16_x(pg, op1, simde_svdup_n_s16(op2)); |
| 261 |
#endif |
| 262 |
} |
| 263 |
#if defined(SIMDE_ARM_SVE_ENABLE_NATIVE_ALIASES) |
| 264 |
#undef simde_svand_n_s16_x |
| 265 |
#define svand_n_s16_x(pg, op1, op2) simde_svand_n_s16_x(pg, op1, op2) |
| 266 |
#endif |
| 267 |
|
| 268 |
SIMDE_FUNCTION_ATTRIBUTES |
| 269 |
simde_svint32_t |
| 270 |
simde_svand_s32_x(simde_svbool_t pg, simde_svint32_t op1, simde_svint32_t op2) { |
| 271 |
#if defined(SIMDE_ARM_SVE_NATIVE) |
| 272 |
return svand_s32_x(pg, op1, op2); |
| 273 |
#else |
| 274 |
simde_svint32_t r; |
| 275 |
HEDLEY_STATIC_CAST(void, pg); |
| 276 |
|
| 277 |
#if defined(SIMDE_ARM_NEON_A32V7_NATIVE) |
| 278 |
r.neon = vandq_s32(op1.neon, op2.neon); |
| 279 |
#elif defined(SIMDE_X86_AVX512BW_NATIVE) && (SIMDE_ARM_SVE_VECTOR_SIZE >= 512) |
| 280 |
r.m512i = _mm512_and_si512(op1.m512i, op2.m512i); |
| 281 |
#elif defined(SIMDE_X86_AVX512BW_NATIVE) && defined(SIMDE_X86_AVX512VL_NATIVE) |
| 282 |
r.m256i[0] = _mm256_and_si256(op1.m256i[0], op2.m256i[0]); |
| 283 |
#elif defined(SIMDE_X86_AVX2_NATIVE) |
| 284 |
for (int i = 0 ; i < HEDLEY_STATIC_CAST(int, sizeof(r.m256i) / sizeof(r.m256i[0])) ; i++) { |
| 285 |
r.m256i[i] = _mm256_and_si256(op1.m256i[i], op2.m256i[i]); |
| 286 |
} |
| 287 |
#elif defined(SIMDE_X86_SSE2_NATIVE) |
| 288 |
for (int i = 0 ; i < HEDLEY_STATIC_CAST(int, sizeof(r.m128i) / sizeof(r.m128i[0])) ; i++) { |
| 289 |
r.m128i[i] = _mm_and_si128(op1.m128i[i], op2.m128i[i]); |
| 290 |
} |
| 291 |
#elif defined(SIMDE_POWER_ALTIVEC_P6_NATIVE) |
| 292 |
r.altivec = vec_and(op1.altivec, op2.altivec); |
| 293 |
#elif defined(SIMDE_ZARCH_ZVECTOR_13_NATIVE) |
| 294 |
r.altivec = op1.altivec & op2.altivec; |
| 295 |
#elif defined(SIMDE_WASM_SIMD128_NATIVE) |
| 296 |
r.v128 = wasm_v128_and(op1.v128, op2.v128); |
| 297 |
#elif defined(SIMDE_VECTOR_SUBSCRIPT_OPS) |
| 298 |
r.values = op1.values & op2.values; |
| 299 |
#else |
| 300 |
SIMDE_VECTORIZE |
| 301 |
for (int i = 0 ; i < HEDLEY_STATIC_CAST(int, sizeof(r.values) / sizeof(r.values[0])) ; i++) { |
| 302 |
r.values[i] = op1.values[i] & op2.values[i]; |
| 303 |
} |
| 304 |
#endif |
| 305 |
|
| 306 |
return r; |
| 307 |
#endif |
| 308 |
} |
| 309 |
#if defined(SIMDE_ARM_SVE_ENABLE_NATIVE_ALIASES) |
| 310 |
#undef simde_svand_s32_x |
| 311 |
#define svand_s32_x(pg, op1, op2) simde_svand_s32_x(pg, op1, op2) |
| 312 |
#endif |
| 313 |
|
| 314 |
SIMDE_FUNCTION_ATTRIBUTES |
| 315 |
simde_svint32_t |
| 316 |
simde_svand_s32_z(simde_svbool_t pg, simde_svint32_t op1, simde_svint32_t op2) { |
| 317 |
#if defined(SIMDE_ARM_SVE_NATIVE) |
| 318 |
return svand_s32_z(pg, op1, op2); |
| 319 |
#elif defined(SIMDE_X86_AVX512BW_NATIVE) && ((SIMDE_ARM_SVE_VECTOR_SIZE >= 512) || defined(SIMDE_X86_AVX512VL_NATIVE)) |
| 320 |
simde_svint32_t r; |
| 321 |
|
| 322 |
#if SIMDE_ARM_SVE_VECTOR_SIZE >= 512 |
| 323 |
r.m512i = _mm512_maskz_and_epi32(simde_svbool_to_mmask16(pg), op1.m512i, op2.m512i); |
| 324 |
#else |
| 325 |
r.m256i[0] = _mm256_maskz_and_epi32(simde_svbool_to_mmask8(pg), op1.m256i[0], op2.m256i[0]); |
| 326 |
#endif |
| 327 |
|
| 328 |
return r; |
| 329 |
#else |
| 330 |
return simde_x_svsel_s32_z(pg, simde_svand_s32_x(pg, op1, op2)); |
| 331 |
#endif |
| 332 |
} |
| 333 |
#if defined(SIMDE_ARM_SVE_ENABLE_NATIVE_ALIASES) |
| 334 |
#undef simde_svand_s32_z |
| 335 |
#define svand_s32_z(pg, op1, op2) simde_svand_s32_z(pg, op1, op2) |
| 336 |
#endif |
| 337 |
|
| 338 |
SIMDE_FUNCTION_ATTRIBUTES |
| 339 |
simde_svint32_t |
| 340 |
simde_svand_s32_m(simde_svbool_t pg, simde_svint32_t op1, simde_svint32_t op2) { |
| 341 |
#if defined(SIMDE_ARM_SVE_NATIVE) |
| 342 |
return svand_s32_m(pg, op1, op2); |
| 343 |
#elif defined(SIMDE_X86_AVX512BW_NATIVE) && ((SIMDE_ARM_SVE_VECTOR_SIZE >= 512) || defined(SIMDE_X86_AVX512VL_NATIVE)) |
| 344 |
simde_svint32_t r; |
| 345 |
|
| 346 |
#if SIMDE_ARM_SVE_VECTOR_SIZE >= 512 |
| 347 |
r.m512i = _mm512_mask_and_epi32(op1.m512i, simde_svbool_to_mmask16(pg), op1.m512i, op2.m512i); |
| 348 |
#else |
| 349 |
r.m256i[0] = _mm256_mask_and_epi32(op1.m256i[0], simde_svbool_to_mmask8(pg), op1.m256i[0], op2.m256i[0]); |
| 350 |
#endif |
| 351 |
|
| 352 |
return r; |
| 353 |
#else |
| 354 |
return simde_svsel_s32(pg, simde_svand_s32_x(pg, op1, op2), op1); |
| 355 |
#endif |
| 356 |
} |
| 357 |
#if defined(SIMDE_ARM_SVE_ENABLE_NATIVE_ALIASES) |
| 358 |
#undef simde_svand_s32_m |
| 359 |
#define svand_s32_m(pg, op1, op2) simde_svand_s32_m(pg, op1, op2) |
| 360 |
#endif |
| 361 |
|
| 362 |
SIMDE_FUNCTION_ATTRIBUTES |
| 363 |
simde_svint32_t |
| 364 |
simde_svand_n_s32_z(simde_svbool_t pg, simde_svint32_t op1, int32_t op2) { |
| 365 |
#if defined(SIMDE_ARM_SVE_NATIVE) |
| 366 |
return svand_n_s32_z(pg, op1, op2); |
| 367 |
#else |
| 368 |
return simde_svand_s32_z(pg, op1, simde_svdup_n_s32(op2)); |
| 369 |
#endif |
| 370 |
} |
| 371 |
#if defined(SIMDE_ARM_SVE_ENABLE_NATIVE_ALIASES) |
| 372 |
#undef simde_svand_n_s32_z |
| 373 |
#define svand_n_s32_z(pg, op1, op2) simde_svand_n_s32_z(pg, op1, op2) |
| 374 |
#endif |
| 375 |
|
| 376 |
SIMDE_FUNCTION_ATTRIBUTES |
| 377 |
simde_svint32_t |
| 378 |
simde_svand_n_s32_m(simde_svbool_t pg, simde_svint32_t op1, int32_t op2) { |
| 379 |
#if defined(SIMDE_ARM_SVE_NATIVE) |
| 380 |
return svand_n_s32_m(pg, op1, op2); |
| 381 |
#else |
| 382 |
return simde_svand_s32_m(pg, op1, simde_svdup_n_s32(op2)); |
| 383 |
#endif |
| 384 |
} |
| 385 |
#if defined(SIMDE_ARM_SVE_ENABLE_NATIVE_ALIASES) |
| 386 |
#undef simde_svand_n_s32_m |
| 387 |
#define svand_n_s32_m(pg, op1, op2) simde_svand_n_s32_m(pg, op1, op2) |
| 388 |
#endif |
| 389 |
|
| 390 |
SIMDE_FUNCTION_ATTRIBUTES |
| 391 |
simde_svint32_t |
| 392 |
simde_svand_n_s32_x(simde_svbool_t pg, simde_svint32_t op1, int32_t op2) { |
| 393 |
#if defined(SIMDE_ARM_SVE_NATIVE) |
| 394 |
return svand_n_s32_x(pg, op1, op2); |
| 395 |
#else |
| 396 |
return simde_svand_s32_x(pg, op1, simde_svdup_n_s32(op2)); |
| 397 |
#endif |
| 398 |
} |
| 399 |
#if defined(SIMDE_ARM_SVE_ENABLE_NATIVE_ALIASES) |
| 400 |
#undef simde_svand_n_s32_x |
| 401 |
#define svand_n_s32_x(pg, op1, op2) simde_svand_n_s32_x(pg, op1, op2) |
| 402 |
#endif |
| 403 |
|
| 404 |
SIMDE_FUNCTION_ATTRIBUTES |
| 405 |
simde_svint64_t |
| 406 |
simde_svand_s64_x(simde_svbool_t pg, simde_svint64_t op1, simde_svint64_t op2) { |
| 407 |
#if defined(SIMDE_ARM_SVE_NATIVE) |
| 408 |
return svand_s64_x(pg, op1, op2); |
| 409 |
#else |
| 410 |
simde_svint64_t r; |
| 411 |
HEDLEY_STATIC_CAST(void, pg); |
| 412 |
|
| 413 |
#if defined(SIMDE_ARM_NEON_A32V7_NATIVE) |
| 414 |
r.neon = vandq_s64(op1.neon, op2.neon); |
| 415 |
#elif defined(SIMDE_X86_AVX512BW_NATIVE) && (SIMDE_ARM_SVE_VECTOR_SIZE >= 512) |
| 416 |
r.m512i = _mm512_and_si512(op1.m512i, op2.m512i); |
| 417 |
#elif defined(SIMDE_X86_AVX512BW_NATIVE) && defined(SIMDE_X86_AVX512VL_NATIVE) |
| 418 |
r.m256i[0] = _mm256_and_si256(op1.m256i[0], op2.m256i[0]); |
| 419 |
#elif defined(SIMDE_X86_AVX2_NATIVE) |
| 420 |
for (int i = 0 ; i < HEDLEY_STATIC_CAST(int, sizeof(r.m256i) / sizeof(r.m256i[0])) ; i++) { |
| 421 |
r.m256i[i] = _mm256_and_si256(op1.m256i[i], op2.m256i[i]); |
| 422 |
} |
| 423 |
#elif defined(SIMDE_X86_SSE2_NATIVE) |
| 424 |
for (int i = 0 ; i < HEDLEY_STATIC_CAST(int, sizeof(r.m128i) / sizeof(r.m128i[0])) ; i++) { |
| 425 |
r.m128i[i] = _mm_and_si128(op1.m128i[i], op2.m128i[i]); |
| 426 |
} |
| 427 |
#elif defined(SIMDE_POWER_ALTIVEC_P7_NATIVE) |
| 428 |
r.altivec = vec_and(op1.altivec, op2.altivec); |
| 429 |
#elif defined(SIMDE_ZARCH_ZVECTOR_13_NATIVE) |
| 430 |
r.altivec = op1.altivec & op2.altivec; |
| 431 |
#elif defined(SIMDE_WASM_SIMD128_NATIVE) |
| 432 |
r.v128 = wasm_v128_and(op1.v128, op2.v128); |
| 433 |
#elif defined(SIMDE_VECTOR_SUBSCRIPT_OPS) |
| 434 |
r.values = op1.values & op2.values; |
| 435 |
#else |
| 436 |
SIMDE_VECTORIZE |
| 437 |
for (int i = 0 ; i < HEDLEY_STATIC_CAST(int, sizeof(r.values) / sizeof(r.values[0])) ; i++) { |
| 438 |
r.values[i] = op1.values[i] & op2.values[i]; |
| 439 |
} |
| 440 |
#endif |
| 441 |
|
| 442 |
return r; |
| 443 |
#endif |
| 444 |
} |
| 445 |
#if defined(SIMDE_ARM_SVE_ENABLE_NATIVE_ALIASES) |
| 446 |
#undef simde_svand_s64_x |
| 447 |
#define svand_s64_x(pg, op1, op2) simde_svand_s64_x(pg, op1, op2) |
| 448 |
#endif |
| 449 |
|
| 450 |
SIMDE_FUNCTION_ATTRIBUTES |
| 451 |
simde_svint64_t |
| 452 |
simde_svand_s64_z(simde_svbool_t pg, simde_svint64_t op1, simde_svint64_t op2) { |
| 453 |
#if defined(SIMDE_ARM_SVE_NATIVE) |
| 454 |
return svand_s64_z(pg, op1, op2); |
| 455 |
#elif defined(SIMDE_X86_AVX512BW_NATIVE) && ((SIMDE_ARM_SVE_VECTOR_SIZE >= 512) || defined(SIMDE_X86_AVX512VL_NATIVE)) |
| 456 |
simde_svint64_t r; |
| 457 |
|
| 458 |
#if SIMDE_ARM_SVE_VECTOR_SIZE >= 512 |
| 459 |
r.m512i = _mm512_maskz_and_epi64(simde_svbool_to_mmask8(pg), op1.m512i, op2.m512i); |
| 460 |
#else |
| 461 |
r.m256i[0] = _mm256_maskz_and_epi64(simde_svbool_to_mmask4(pg), op1.m256i[0], op2.m256i[0]); |
| 462 |
#endif |
| 463 |
|
| 464 |
return r; |
| 465 |
#else |
| 466 |
return simde_x_svsel_s64_z(pg, simde_svand_s64_x(pg, op1, op2)); |
| 467 |
#endif |
| 468 |
} |
| 469 |
#if defined(SIMDE_ARM_SVE_ENABLE_NATIVE_ALIASES) |
| 470 |
#undef simde_svand_s64_z |
| 471 |
#define svand_s64_z(pg, op1, op2) simde_svand_s64_z(pg, op1, op2) |
| 472 |
#endif |
| 473 |
|
| 474 |
SIMDE_FUNCTION_ATTRIBUTES |
| 475 |
simde_svint64_t |
| 476 |
simde_svand_s64_m(simde_svbool_t pg, simde_svint64_t op1, simde_svint64_t op2) { |
| 477 |
#if defined(SIMDE_ARM_SVE_NATIVE) |
| 478 |
return svand_s64_m(pg, op1, op2); |
| 479 |
#elif defined(SIMDE_X86_AVX512BW_NATIVE) && ((SIMDE_ARM_SVE_VECTOR_SIZE >= 512) || defined(SIMDE_X86_AVX512VL_NATIVE)) |
| 480 |
simde_svint64_t r; |
| 481 |
|
| 482 |
#if SIMDE_ARM_SVE_VECTOR_SIZE >= 512 |
| 483 |
r.m512i = _mm512_mask_and_epi64(op1.m512i, simde_svbool_to_mmask8(pg), op1.m512i, op2.m512i); |
| 484 |
#else |
| 485 |
r.m256i[0] = _mm256_mask_and_epi64(op1.m256i[0], simde_svbool_to_mmask4(pg), op1.m256i[0], op2.m256i[0]); |
| 486 |
#endif |
| 487 |
|
| 488 |
return r; |
| 489 |
#else |
| 490 |
return simde_svsel_s64(pg, simde_svand_s64_x(pg, op1, op2), op1); |
| 491 |
#endif |
| 492 |
} |
| 493 |
#if defined(SIMDE_ARM_SVE_ENABLE_NATIVE_ALIASES) |
| 494 |
#undef simde_svand_s64_m |
| 495 |
#define svand_s64_m(pg, op1, op2) simde_svand_s64_m(pg, op1, op2) |
| 496 |
#endif |
| 497 |
|
| 498 |
SIMDE_FUNCTION_ATTRIBUTES |
| 499 |
simde_svint64_t |
| 500 |
simde_svand_n_s64_z(simde_svbool_t pg, simde_svint64_t op1, int64_t op2) { |
| 501 |
#if defined(SIMDE_ARM_SVE_NATIVE) |
| 502 |
return svand_n_s64_z(pg, op1, op2); |
| 503 |
#else |
| 504 |
return simde_svand_s64_z(pg, op1, simde_svdup_n_s64(op2)); |
| 505 |
#endif |
| 506 |
} |
| 507 |
#if defined(SIMDE_ARM_SVE_ENABLE_NATIVE_ALIASES) |
| 508 |
#undef simde_svand_n_s64_z |
| 509 |
#define svand_n_s64_z(pg, op1, op2) simde_svand_n_s64_z(pg, op1, op2) |
| 510 |
#endif |
| 511 |
|
| 512 |
SIMDE_FUNCTION_ATTRIBUTES |
| 513 |
simde_svint64_t |
| 514 |
simde_svand_n_s64_m(simde_svbool_t pg, simde_svint64_t op1, int64_t op2) { |
| 515 |
#if defined(SIMDE_ARM_SVE_NATIVE) |
| 516 |
return svand_n_s64_m(pg, op1, op2); |
| 517 |
#else |
| 518 |
return simde_svand_s64_m(pg, op1, simde_svdup_n_s64(op2)); |
| 519 |
#endif |
| 520 |
} |
| 521 |
#if defined(SIMDE_ARM_SVE_ENABLE_NATIVE_ALIASES) |
| 522 |
#undef simde_svand_n_s64_m |
| 523 |
#define svand_n_s64_m(pg, op1, op2) simde_svand_n_s64_m(pg, op1, op2) |
| 524 |
#endif |
| 525 |
|
| 526 |
SIMDE_FUNCTION_ATTRIBUTES |
| 527 |
simde_svint64_t |
| 528 |
simde_svand_n_s64_x(simde_svbool_t pg, simde_svint64_t op1, int64_t op2) { |
| 529 |
#if defined(SIMDE_ARM_SVE_NATIVE) |
| 530 |
return svand_n_s64_x(pg, op1, op2); |
| 531 |
#else |
| 532 |
return simde_svand_s64_x(pg, op1, simde_svdup_n_s64(op2)); |
| 533 |
#endif |
| 534 |
} |
| 535 |
#if defined(SIMDE_ARM_SVE_ENABLE_NATIVE_ALIASES) |
| 536 |
#undef simde_svand_n_s64_x |
| 537 |
#define svand_n_s64_x(pg, op1, op2) simde_svand_n_s64_x(pg, op1, op2) |
| 538 |
#endif |
| 539 |
|
| 540 |
SIMDE_FUNCTION_ATTRIBUTES |
| 541 |
simde_svuint8_t |
| 542 |
simde_svand_u8_z(simde_svbool_t pg, simde_svuint8_t op1, simde_svuint8_t op2) { |
| 543 |
#if defined(SIMDE_ARM_SVE_NATIVE) |
| 544 |
return svand_u8_z(pg, op1, op2); |
| 545 |
#else |
| 546 |
return simde_svreinterpret_u8_s8(simde_svand_s8_z(pg, simde_svreinterpret_s8_u8(op1), simde_svreinterpret_s8_u8(op2))); |
| 547 |
#endif |
| 548 |
} |
| 549 |
#if defined(SIMDE_ARM_SVE_ENABLE_NATIVE_ALIASES) |
| 550 |
#undef simde_svand_u8_z |
| 551 |
#define svand_u8_z(pg, op1, op2) simde_svand_u8_z(pg, op1, op2) |
| 552 |
#endif |
| 553 |
|
| 554 |
SIMDE_FUNCTION_ATTRIBUTES |
| 555 |
simde_svuint8_t |
| 556 |
simde_svand_u8_m(simde_svbool_t pg, simde_svuint8_t op1, simde_svuint8_t op2) { |
| 557 |
#if defined(SIMDE_ARM_SVE_NATIVE) |
| 558 |
return svand_u8_m(pg, op1, op2); |
| 559 |
#else |
| 560 |
return simde_svreinterpret_u8_s8(simde_svand_s8_m(pg, simde_svreinterpret_s8_u8(op1), simde_svreinterpret_s8_u8(op2))); |
| 561 |
#endif |
| 562 |
} |
| 563 |
#if defined(SIMDE_ARM_SVE_ENABLE_NATIVE_ALIASES) |
| 564 |
#undef simde_svand_u8_m |
| 565 |
#define svand_u8_m(pg, op1, op2) simde_svand_u8_m(pg, op1, op2) |
| 566 |
#endif |
| 567 |
|
| 568 |
SIMDE_FUNCTION_ATTRIBUTES |
| 569 |
simde_svuint8_t |
| 570 |
simde_svand_u8_x(simde_svbool_t pg, simde_svuint8_t op1, simde_svuint8_t op2) { |
| 571 |
#if defined(SIMDE_ARM_SVE_NATIVE) |
| 572 |
return svand_u8_x(pg, op1, op2); |
| 573 |
#else |
| 574 |
return simde_svreinterpret_u8_s8(simde_svand_s8_x(pg, simde_svreinterpret_s8_u8(op1), simde_svreinterpret_s8_u8(op2))); |
| 575 |
#endif |
| 576 |
} |
| 577 |
#if defined(SIMDE_ARM_SVE_ENABLE_NATIVE_ALIASES) |
| 578 |
#undef simde_svand_u8_x |
| 579 |
#define svand_u8_x(pg, op1, op2) simde_svand_u8_x(pg, op1, op2) |
| 580 |
#endif |
| 581 |
|
| 582 |
SIMDE_FUNCTION_ATTRIBUTES |
| 583 |
simde_svuint8_t |
| 584 |
simde_svand_n_u8_z(simde_svbool_t pg, simde_svuint8_t op1, uint8_t op2) { |
| 585 |
#if defined(SIMDE_ARM_SVE_NATIVE) |
| 586 |
return svand_n_u8_z(pg, op1, op2); |
| 587 |
#else |
| 588 |
return simde_svand_u8_z(pg, op1, simde_svdup_n_u8(op2)); |
| 589 |
#endif |
| 590 |
} |
| 591 |
#if defined(SIMDE_ARM_SVE_ENABLE_NATIVE_ALIASES) |
| 592 |
#undef simde_svand_n_u8_z |
| 593 |
#define svand_n_u8_z(pg, op1, op2) simde_svand_n_u8_z(pg, op1, op2) |
| 594 |
#endif |
| 595 |
|
| 596 |
SIMDE_FUNCTION_ATTRIBUTES |
| 597 |
simde_svuint8_t |
| 598 |
simde_svand_n_u8_m(simde_svbool_t pg, simde_svuint8_t op1, uint8_t op2) { |
| 599 |
#if defined(SIMDE_ARM_SVE_NATIVE) |
| 600 |
return svand_n_u8_m(pg, op1, op2); |
| 601 |
#else |
| 602 |
return simde_svand_u8_m(pg, op1, simde_svdup_n_u8(op2)); |
| 603 |
#endif |
| 604 |
} |
| 605 |
#if defined(SIMDE_ARM_SVE_ENABLE_NATIVE_ALIASES) |
| 606 |
#undef simde_svand_n_u8_m |
| 607 |
#define svand_n_u8_m(pg, op1, op2) simde_svand_n_u8_m(pg, op1, op2) |
| 608 |
#endif |
| 609 |
|
| 610 |
SIMDE_FUNCTION_ATTRIBUTES |
| 611 |
simde_svuint8_t |
| 612 |
simde_svand_n_u8_x(simde_svbool_t pg, simde_svuint8_t op1, uint8_t op2) { |
| 613 |
#if defined(SIMDE_ARM_SVE_NATIVE) |
| 614 |
return svand_n_u8_x(pg, op1, op2); |
| 615 |
#else |
| 616 |
return simde_svand_u8_x(pg, op1, simde_svdup_n_u8(op2)); |
| 617 |
#endif |
| 618 |
} |
| 619 |
#if defined(SIMDE_ARM_SVE_ENABLE_NATIVE_ALIASES) |
| 620 |
#undef simde_svand_n_u8_x |
| 621 |
#define svand_n_u8_x(pg, op1, op2) simde_svand_n_u8_x(pg, op1, op2) |
| 622 |
#endif |
| 623 |
|
| 624 |
SIMDE_FUNCTION_ATTRIBUTES |
| 625 |
simde_svuint16_t |
| 626 |
simde_svand_u16_z(simde_svbool_t pg, simde_svuint16_t op1, simde_svuint16_t op2) { |
| 627 |
#if defined(SIMDE_ARM_SVE_NATIVE) |
| 628 |
return svand_u16_z(pg, op1, op2); |
| 629 |
#else |
| 630 |
return simde_svreinterpret_u16_s16(simde_svand_s16_z(pg, simde_svreinterpret_s16_u16(op1), simde_svreinterpret_s16_u16(op2))); |
| 631 |
#endif |
| 632 |
} |
| 633 |
#if defined(SIMDE_ARM_SVE_ENABLE_NATIVE_ALIASES) |
| 634 |
#undef simde_svand_u16_z |
| 635 |
#define svand_u16_z(pg, op1, op2) simde_svand_u16_z(pg, op1, op2) |
| 636 |
#endif |
| 637 |
|
| 638 |
SIMDE_FUNCTION_ATTRIBUTES |
| 639 |
simde_svuint16_t |
| 640 |
simde_svand_u16_m(simde_svbool_t pg, simde_svuint16_t op1, simde_svuint16_t op2) { |
| 641 |
#if defined(SIMDE_ARM_SVE_NATIVE) |
| 642 |
return svand_u16_m(pg, op1, op2); |
| 643 |
#else |
| 644 |
return simde_svreinterpret_u16_s16(simde_svand_s16_m(pg, simde_svreinterpret_s16_u16(op1), simde_svreinterpret_s16_u16(op2))); |
| 645 |
#endif |
| 646 |
} |
| 647 |
#if defined(SIMDE_ARM_SVE_ENABLE_NATIVE_ALIASES) |
| 648 |
#undef simde_svand_u16_m |
| 649 |
#define svand_u16_m(pg, op1, op2) simde_svand_u16_m(pg, op1, op2) |
| 650 |
#endif |
| 651 |
|
| 652 |
SIMDE_FUNCTION_ATTRIBUTES |
| 653 |
simde_svuint16_t |
| 654 |
simde_svand_u16_x(simde_svbool_t pg, simde_svuint16_t op1, simde_svuint16_t op2) { |
| 655 |
#if defined(SIMDE_ARM_SVE_NATIVE) |
| 656 |
return svand_u16_x(pg, op1, op2); |
| 657 |
#else |
| 658 |
return simde_svreinterpret_u16_s16(simde_svand_s16_x(pg, simde_svreinterpret_s16_u16(op1), simde_svreinterpret_s16_u16(op2))); |
| 659 |
#endif |
| 660 |
} |
| 661 |
#if defined(SIMDE_ARM_SVE_ENABLE_NATIVE_ALIASES) |
| 662 |
#undef simde_svand_u16_x |
| 663 |
#define svand_u16_x(pg, op1, op2) simde_svand_u16_x(pg, op1, op2) |
| 664 |
#endif |
| 665 |
|
| 666 |
SIMDE_FUNCTION_ATTRIBUTES |
| 667 |
simde_svuint16_t |
| 668 |
simde_svand_n_u16_z(simde_svbool_t pg, simde_svuint16_t op1, uint16_t op2) { |
| 669 |
#if defined(SIMDE_ARM_SVE_NATIVE) |
| 670 |
return svand_n_u16_z(pg, op1, op2); |
| 671 |
#else |
| 672 |
return simde_svand_u16_z(pg, op1, simde_svdup_n_u16(op2)); |
| 673 |
#endif |
| 674 |
} |
| 675 |
#if defined(SIMDE_ARM_SVE_ENABLE_NATIVE_ALIASES) |
| 676 |
#undef simde_svand_n_u16_z |
| 677 |
#define svand_n_u16_z(pg, op1, op2) simde_svand_n_u16_z(pg, op1, op2) |
| 678 |
#endif |
| 679 |
|
| 680 |
SIMDE_FUNCTION_ATTRIBUTES |
| 681 |
simde_svuint16_t |
| 682 |
simde_svand_n_u16_m(simde_svbool_t pg, simde_svuint16_t op1, uint16_t op2) { |
| 683 |
#if defined(SIMDE_ARM_SVE_NATIVE) |
| 684 |
return svand_n_u16_m(pg, op1, op2); |
| 685 |
#else |
| 686 |
return simde_svand_u16_m(pg, op1, simde_svdup_n_u16(op2)); |
| 687 |
#endif |
| 688 |
} |
| 689 |
#if defined(SIMDE_ARM_SVE_ENABLE_NATIVE_ALIASES) |
| 690 |
#undef simde_svand_n_u16_m |
| 691 |
#define svand_n_u16_m(pg, op1, op2) simde_svand_n_u16_m(pg, op1, op2) |
| 692 |
#endif |
| 693 |
|
| 694 |
SIMDE_FUNCTION_ATTRIBUTES |
| 695 |
simde_svuint16_t |
| 696 |
simde_svand_n_u16_x(simde_svbool_t pg, simde_svuint16_t op1, uint16_t op2) { |
| 697 |
#if defined(SIMDE_ARM_SVE_NATIVE) |
| 698 |
return svand_n_u16_x(pg, op1, op2); |
| 699 |
#else |
| 700 |
return simde_svand_u16_x(pg, op1, simde_svdup_n_u16(op2)); |
| 701 |
#endif |
| 702 |
} |
| 703 |
#if defined(SIMDE_ARM_SVE_ENABLE_NATIVE_ALIASES) |
| 704 |
#undef simde_svand_n_u16_x |
| 705 |
#define svand_n_u16_x(pg, op1, op2) simde_svand_n_u16_x(pg, op1, op2) |
| 706 |
#endif |
| 707 |
|
| 708 |
SIMDE_FUNCTION_ATTRIBUTES |
| 709 |
simde_svuint32_t |
| 710 |
simde_svand_u32_z(simde_svbool_t pg, simde_svuint32_t op1, simde_svuint32_t op2) { |
| 711 |
#if defined(SIMDE_ARM_SVE_NATIVE) |
| 712 |
return svand_u32_z(pg, op1, op2); |
| 713 |
#else |
| 714 |
return simde_svreinterpret_u32_s32(simde_svand_s32_z(pg, simde_svreinterpret_s32_u32(op1), simde_svreinterpret_s32_u32(op2))); |
| 715 |
#endif |
| 716 |
} |
| 717 |
#if defined(SIMDE_ARM_SVE_ENABLE_NATIVE_ALIASES) |
| 718 |
#undef simde_svand_u32_z |
| 719 |
#define svand_u32_z(pg, op1, op2) simde_svand_u32_z(pg, op1, op2) |
| 720 |
#endif |
| 721 |
|
| 722 |
SIMDE_FUNCTION_ATTRIBUTES |
| 723 |
simde_svuint32_t |
| 724 |
simde_svand_u32_m(simde_svbool_t pg, simde_svuint32_t op1, simde_svuint32_t op2) { |
| 725 |
#if defined(SIMDE_ARM_SVE_NATIVE) |
| 726 |
return svand_u32_m(pg, op1, op2); |
| 727 |
#else |
| 728 |
return simde_svreinterpret_u32_s32(simde_svand_s32_m(pg, simde_svreinterpret_s32_u32(op1), simde_svreinterpret_s32_u32(op2))); |
| 729 |
#endif |
| 730 |
} |
| 731 |
#if defined(SIMDE_ARM_SVE_ENABLE_NATIVE_ALIASES) |
| 732 |
#undef simde_svand_u32_m |
| 733 |
#define svand_u32_m(pg, op1, op2) simde_svand_u32_m(pg, op1, op2) |
| 734 |
#endif |
| 735 |
|
| 736 |
SIMDE_FUNCTION_ATTRIBUTES |
| 737 |
simde_svuint32_t |
| 738 |
simde_svand_u32_x(simde_svbool_t pg, simde_svuint32_t op1, simde_svuint32_t op2) { |
| 739 |
#if defined(SIMDE_ARM_SVE_NATIVE) |
| 740 |
return svand_u32_x(pg, op1, op2); |
| 741 |
#else |
| 742 |
return simde_svreinterpret_u32_s32(simde_svand_s32_x(pg, simde_svreinterpret_s32_u32(op1), simde_svreinterpret_s32_u32(op2))); |
| 743 |
#endif |
| 744 |
} |
| 745 |
#if defined(SIMDE_ARM_SVE_ENABLE_NATIVE_ALIASES) |
| 746 |
#undef simde_svand_u32_x |
| 747 |
#define svand_u32_x(pg, op1, op2) simde_svand_u32_x(pg, op1, op2) |
| 748 |
#endif |
| 749 |
|
| 750 |
SIMDE_FUNCTION_ATTRIBUTES |
| 751 |
simde_svuint32_t |
| 752 |
simde_svand_n_u32_z(simde_svbool_t pg, simde_svuint32_t op1, uint32_t op2) { |
| 753 |
#if defined(SIMDE_ARM_SVE_NATIVE) |
| 754 |
return svand_n_u32_z(pg, op1, op2); |
| 755 |
#else |
| 756 |
return simde_svand_u32_z(pg, op1, simde_svdup_n_u32(op2)); |
| 757 |
#endif |
| 758 |
} |
| 759 |
#if defined(SIMDE_ARM_SVE_ENABLE_NATIVE_ALIASES) |
| 760 |
#undef simde_svand_n_u32_z |
| 761 |
#define svand_n_u32_z(pg, op1, op2) simde_svand_n_u32_z(pg, op1, op2) |
| 762 |
#endif |
| 763 |
|
| 764 |
SIMDE_FUNCTION_ATTRIBUTES |
| 765 |
simde_svuint32_t |
| 766 |
simde_svand_n_u32_m(simde_svbool_t pg, simde_svuint32_t op1, uint32_t op2) { |
| 767 |
#if defined(SIMDE_ARM_SVE_NATIVE) |
| 768 |
return svand_n_u32_m(pg, op1, op2); |
| 769 |
#else |
| 770 |
return simde_svand_u32_m(pg, op1, simde_svdup_n_u32(op2)); |
| 771 |
#endif |
| 772 |
} |
| 773 |
#if defined(SIMDE_ARM_SVE_ENABLE_NATIVE_ALIASES) |
| 774 |
#undef simde_svand_n_u32_m |
| 775 |
#define svand_n_u32_m(pg, op1, op2) simde_svand_n_u32_m(pg, op1, op2) |
| 776 |
#endif |
| 777 |
|
| 778 |
SIMDE_FUNCTION_ATTRIBUTES |
| 779 |
simde_svuint32_t |
| 780 |
simde_svand_n_u32_x(simde_svbool_t pg, simde_svuint32_t op1, uint32_t op2) { |
| 781 |
#if defined(SIMDE_ARM_SVE_NATIVE) |
| 782 |
return svand_n_u32_x(pg, op1, op2); |
| 783 |
#else |
| 784 |
return simde_svand_u32_x(pg, op1, simde_svdup_n_u32(op2)); |
| 785 |
#endif |
| 786 |
} |
| 787 |
#if defined(SIMDE_ARM_SVE_ENABLE_NATIVE_ALIASES) |
| 788 |
#undef simde_svand_n_u32_x |
| 789 |
#define svand_n_u32_x(pg, op1, op2) simde_svand_n_u32_x(pg, op1, op2) |
| 790 |
#endif |
| 791 |
|
| 792 |
SIMDE_FUNCTION_ATTRIBUTES |
| 793 |
simde_svuint64_t |
| 794 |
simde_svand_u64_z(simde_svbool_t pg, simde_svuint64_t op1, simde_svuint64_t op2) { |
| 795 |
#if defined(SIMDE_ARM_SVE_NATIVE) |
| 796 |
return svand_u64_z(pg, op1, op2); |
| 797 |
#else |
| 798 |
return simde_svreinterpret_u64_s64(simde_svand_s64_z(pg, simde_svreinterpret_s64_u64(op1), simde_svreinterpret_s64_u64(op2))); |
| 799 |
#endif |
| 800 |
} |
| 801 |
#if defined(SIMDE_ARM_SVE_ENABLE_NATIVE_ALIASES) |
| 802 |
#undef simde_svand_u64_z |
| 803 |
#define svand_u64_z(pg, op1, op2) simde_svand_u64_z(pg, op1, op2) |
| 804 |
#endif |
| 805 |
|
| 806 |
SIMDE_FUNCTION_ATTRIBUTES |
| 807 |
simde_svuint64_t |
| 808 |
simde_svand_u64_m(simde_svbool_t pg, simde_svuint64_t op1, simde_svuint64_t op2) { |
| 809 |
#if defined(SIMDE_ARM_SVE_NATIVE) |
| 810 |
return svand_u64_m(pg, op1, op2); |
| 811 |
#else |
| 812 |
return simde_svreinterpret_u64_s64(simde_svand_s64_m(pg, simde_svreinterpret_s64_u64(op1), simde_svreinterpret_s64_u64(op2))); |
| 813 |
#endif |
| 814 |
} |
| 815 |
#if defined(SIMDE_ARM_SVE_ENABLE_NATIVE_ALIASES) |
| 816 |
#undef simde_svand_u64_m |
| 817 |
#define svand_u64_m(pg, op1, op2) simde_svand_u64_m(pg, op1, op2) |
| 818 |
#endif |
| 819 |
|
| 820 |
SIMDE_FUNCTION_ATTRIBUTES |
| 821 |
simde_svuint64_t |
| 822 |
simde_svand_u64_x(simde_svbool_t pg, simde_svuint64_t op1, simde_svuint64_t op2) { |
| 823 |
#if defined(SIMDE_ARM_SVE_NATIVE) |
| 824 |
return svand_u64_x(pg, op1, op2); |
| 825 |
#else |
| 826 |
return simde_svreinterpret_u64_s64(simde_svand_s64_x(pg, simde_svreinterpret_s64_u64(op1), simde_svreinterpret_s64_u64(op2))); |
| 827 |
#endif |
| 828 |
} |
| 829 |
#if defined(SIMDE_ARM_SVE_ENABLE_NATIVE_ALIASES) |
| 830 |
#undef simde_svand_u64_x |
| 831 |
#define svand_u64_x(pg, op1, op2) simde_svand_u64_x(pg, op1, op2) |
| 832 |
#endif |
| 833 |
|
| 834 |
SIMDE_FUNCTION_ATTRIBUTES |
| 835 |
simde_svuint64_t |
| 836 |
simde_svand_n_u64_z(simde_svbool_t pg, simde_svuint64_t op1, uint64_t op2) { |
| 837 |
#if defined(SIMDE_ARM_SVE_NATIVE) |
| 838 |
return svand_n_u64_z(pg, op1, op2); |
| 839 |
#else |
| 840 |
return simde_svand_u64_z(pg, op1, simde_svdup_n_u64(op2)); |
| 841 |
#endif |
| 842 |
} |
| 843 |
#if defined(SIMDE_ARM_SVE_ENABLE_NATIVE_ALIASES) |
| 844 |
#undef simde_svand_n_u64_z |
| 845 |
#define svand_n_u64_x(pg, op1, op2) simde_svand_n_u64_x(pg, op1, op2) |
| 846 |
#endif |
| 847 |
|
| 848 |
SIMDE_FUNCTION_ATTRIBUTES |
| 849 |
simde_svuint64_t |
| 850 |
simde_svand_n_u64_m(simde_svbool_t pg, simde_svuint64_t op1, uint64_t op2) { |
| 851 |
#if defined(SIMDE_ARM_SVE_NATIVE) |
| 852 |
return svand_n_u64_m(pg, op1, op2); |
| 853 |
#else |
| 854 |
return simde_svand_u64_m(pg, op1, simde_svdup_n_u64(op2)); |
| 855 |
#endif |
| 856 |
} |
| 857 |
#if defined(SIMDE_ARM_SVE_ENABLE_NATIVE_ALIASES) |
| 858 |
#undef simde_svand_n_u64_m |
| 859 |
#define svand_n_u64_x(pg, op1, op2) simde_svand_n_u64_x(pg, op1, op2) |
| 860 |
#endif |
| 861 |
|
| 862 |
SIMDE_FUNCTION_ATTRIBUTES |
| 863 |
simde_svuint64_t |
| 864 |
simde_svand_n_u64_x(simde_svbool_t pg, simde_svuint64_t op1, uint64_t op2) { |
| 865 |
#if defined(SIMDE_ARM_SVE_NATIVE) |
| 866 |
return svand_n_u64_x(pg, op1, op2); |
| 867 |
#else |
| 868 |
return simde_svand_u64_x(pg, op1, simde_svdup_n_u64(op2)); |
| 869 |
#endif |
| 870 |
} |
| 871 |
#if defined(SIMDE_ARM_SVE_ENABLE_NATIVE_ALIASES) |
| 872 |
#undef simde_svand_n_u64_x |
| 873 |
#define svand_n_u64_x(pg, op1, op2) simde_svand_n_u64_x(pg, op1, op2) |
| 874 |
#endif |
| 875 |
|
| 876 |
#if defined(__cplusplus) |
| 877 |
SIMDE_FUNCTION_ATTRIBUTES simde_svint8_t simde_svand_z(simde_svbool_t pg, simde_svint8_t op1, simde_svint8_t op2) { return simde_svand_s8_z (pg, op1, op2); } |
| 878 |
SIMDE_FUNCTION_ATTRIBUTES simde_svint16_t simde_svand_z(simde_svbool_t pg, simde_svint16_t op1, simde_svint16_t op2) { return simde_svand_s16_z(pg, op1, op2); } |
| 879 |
SIMDE_FUNCTION_ATTRIBUTES simde_svint32_t simde_svand_z(simde_svbool_t pg, simde_svint32_t op1, simde_svint32_t op2) { return simde_svand_s32_z(pg, op1, op2); } |
| 880 |
SIMDE_FUNCTION_ATTRIBUTES simde_svint64_t simde_svand_z(simde_svbool_t pg, simde_svint64_t op1, simde_svint64_t op2) { return simde_svand_s64_z(pg, op1, op2); } |
| 881 |
SIMDE_FUNCTION_ATTRIBUTES simde_svuint8_t simde_svand_z(simde_svbool_t pg, simde_svuint8_t op1, simde_svuint8_t op2) { return simde_svand_u8_z (pg, op1, op2); } |
| 882 |
SIMDE_FUNCTION_ATTRIBUTES simde_svuint16_t simde_svand_z(simde_svbool_t pg, simde_svuint16_t op1, simde_svuint16_t op2) { return simde_svand_u16_z(pg, op1, op2); } |
| 883 |
SIMDE_FUNCTION_ATTRIBUTES simde_svuint32_t simde_svand_z(simde_svbool_t pg, simde_svuint32_t op1, simde_svuint32_t op2) { return simde_svand_u32_z(pg, op1, op2); } |
| 884 |
SIMDE_FUNCTION_ATTRIBUTES simde_svuint64_t simde_svand_z(simde_svbool_t pg, simde_svuint64_t op1, simde_svuint64_t op2) { return simde_svand_u64_z(pg, op1, op2); } |
| 885 |
|
| 886 |
SIMDE_FUNCTION_ATTRIBUTES simde_svint8_t simde_svand_m(simde_svbool_t pg, simde_svint8_t op1, simde_svint8_t op2) { return simde_svand_s8_m (pg, op1, op2); } |
| 887 |
SIMDE_FUNCTION_ATTRIBUTES simde_svint16_t simde_svand_m(simde_svbool_t pg, simde_svint16_t op1, simde_svint16_t op2) { return simde_svand_s16_m(pg, op1, op2); } |
| 888 |
SIMDE_FUNCTION_ATTRIBUTES simde_svint32_t simde_svand_m(simde_svbool_t pg, simde_svint32_t op1, simde_svint32_t op2) { return simde_svand_s32_m(pg, op1, op2); } |
| 889 |
SIMDE_FUNCTION_ATTRIBUTES simde_svint64_t simde_svand_m(simde_svbool_t pg, simde_svint64_t op1, simde_svint64_t op2) { return simde_svand_s64_m(pg, op1, op2); } |
| 890 |
SIMDE_FUNCTION_ATTRIBUTES simde_svuint8_t simde_svand_m(simde_svbool_t pg, simde_svuint8_t op1, simde_svuint8_t op2) { return simde_svand_u8_m (pg, op1, op2); } |
| 891 |
SIMDE_FUNCTION_ATTRIBUTES simde_svuint16_t simde_svand_m(simde_svbool_t pg, simde_svuint16_t op1, simde_svuint16_t op2) { return simde_svand_u16_m(pg, op1, op2); } |
| 892 |
SIMDE_FUNCTION_ATTRIBUTES simde_svuint32_t simde_svand_m(simde_svbool_t pg, simde_svuint32_t op1, simde_svuint32_t op2) { return simde_svand_u32_m(pg, op1, op2); } |
| 893 |
SIMDE_FUNCTION_ATTRIBUTES simde_svuint64_t simde_svand_m(simde_svbool_t pg, simde_svuint64_t op1, simde_svuint64_t op2) { return simde_svand_u64_m(pg, op1, op2); } |
| 894 |
|
| 895 |
SIMDE_FUNCTION_ATTRIBUTES simde_svint8_t simde_svand_x(simde_svbool_t pg, simde_svint8_t op1, simde_svint8_t op2) { return simde_svand_s8_x (pg, op1, op2); } |
| 896 |
SIMDE_FUNCTION_ATTRIBUTES simde_svint16_t simde_svand_x(simde_svbool_t pg, simde_svint16_t op1, simde_svint16_t op2) { return simde_svand_s16_x(pg, op1, op2); } |
| 897 |
SIMDE_FUNCTION_ATTRIBUTES simde_svint32_t simde_svand_x(simde_svbool_t pg, simde_svint32_t op1, simde_svint32_t op2) { return simde_svand_s32_x(pg, op1, op2); } |
| 898 |
SIMDE_FUNCTION_ATTRIBUTES simde_svint64_t simde_svand_x(simde_svbool_t pg, simde_svint64_t op1, simde_svint64_t op2) { return simde_svand_s64_x(pg, op1, op2); } |
| 899 |
SIMDE_FUNCTION_ATTRIBUTES simde_svuint8_t simde_svand_x(simde_svbool_t pg, simde_svuint8_t op1, simde_svuint8_t op2) { return simde_svand_u8_x (pg, op1, op2); } |
| 900 |
SIMDE_FUNCTION_ATTRIBUTES simde_svuint16_t simde_svand_x(simde_svbool_t pg, simde_svuint16_t op1, simde_svuint16_t op2) { return simde_svand_u16_x(pg, op1, op2); } |
| 901 |
SIMDE_FUNCTION_ATTRIBUTES simde_svuint32_t simde_svand_x(simde_svbool_t pg, simde_svuint32_t op1, simde_svuint32_t op2) { return simde_svand_u32_x(pg, op1, op2); } |
| 902 |
SIMDE_FUNCTION_ATTRIBUTES simde_svuint64_t simde_svand_x(simde_svbool_t pg, simde_svuint64_t op1, simde_svuint64_t op2) { return simde_svand_u64_x(pg, op1, op2); } |
| 903 |
|
| 904 |
SIMDE_FUNCTION_ATTRIBUTES simde_svint8_t simde_svand_z(simde_svbool_t pg, simde_svint8_t op1, int8_t op2) { return simde_svand_n_s8_z(pg, op1, op2); } |
| 905 |
SIMDE_FUNCTION_ATTRIBUTES simde_svint16_t simde_svand_z(simde_svbool_t pg, simde_svint16_t op1, int16_t op2) { return simde_svand_n_s16_z(pg, op1, op2); } |
| 906 |
SIMDE_FUNCTION_ATTRIBUTES simde_svint32_t simde_svand_z(simde_svbool_t pg, simde_svint32_t op1, int32_t op2) { return simde_svand_n_s32_z(pg, op1, op2); } |
| 907 |
SIMDE_FUNCTION_ATTRIBUTES simde_svint64_t simde_svand_z(simde_svbool_t pg, simde_svint64_t op1, int64_t op2) { return simde_svand_n_s64_z(pg, op1, op2); } |
| 908 |
SIMDE_FUNCTION_ATTRIBUTES simde_svuint8_t simde_svand_z(simde_svbool_t pg, simde_svuint8_t op1, uint8_t op2) { return simde_svand_n_u8_z(pg, op1, op2); } |
| 909 |
SIMDE_FUNCTION_ATTRIBUTES simde_svuint16_t simde_svand_z(simde_svbool_t pg, simde_svuint16_t op1, uint16_t op2) { return simde_svand_n_u16_z(pg, op1, op2); } |
| 910 |
SIMDE_FUNCTION_ATTRIBUTES simde_svuint32_t simde_svand_z(simde_svbool_t pg, simde_svuint32_t op1, uint32_t op2) { return simde_svand_n_u32_z(pg, op1, op2); } |
| 911 |
SIMDE_FUNCTION_ATTRIBUTES simde_svuint64_t simde_svand_z(simde_svbool_t pg, simde_svuint64_t op1, uint64_t op2) { return simde_svand_n_u64_z(pg, op1, op2); } |
| 912 |
|
| 913 |
SIMDE_FUNCTION_ATTRIBUTES simde_svint8_t simde_svand_m(simde_svbool_t pg, simde_svint8_t op1, int8_t op2) { return simde_svand_n_s8_m(pg, op1, op2); } |
| 914 |
SIMDE_FUNCTION_ATTRIBUTES simde_svint16_t simde_svand_m(simde_svbool_t pg, simde_svint16_t op1, int16_t op2) { return simde_svand_n_s16_m(pg, op1, op2); } |
| 915 |
SIMDE_FUNCTION_ATTRIBUTES simde_svint32_t simde_svand_m(simde_svbool_t pg, simde_svint32_t op1, int32_t op2) { return simde_svand_n_s32_m(pg, op1, op2); } |
| 916 |
SIMDE_FUNCTION_ATTRIBUTES simde_svint64_t simde_svand_m(simde_svbool_t pg, simde_svint64_t op1, int64_t op2) { return simde_svand_n_s64_m(pg, op1, op2); } |
| 917 |
SIMDE_FUNCTION_ATTRIBUTES simde_svuint8_t simde_svand_m(simde_svbool_t pg, simde_svuint8_t op1, uint8_t op2) { return simde_svand_n_u8_m(pg, op1, op2); } |
| 918 |
SIMDE_FUNCTION_ATTRIBUTES simde_svuint16_t simde_svand_m(simde_svbool_t pg, simde_svuint16_t op1, uint16_t op2) { return simde_svand_n_u16_m(pg, op1, op2); } |
| 919 |
SIMDE_FUNCTION_ATTRIBUTES simde_svuint32_t simde_svand_m(simde_svbool_t pg, simde_svuint32_t op1, uint32_t op2) { return simde_svand_n_u32_m(pg, op1, op2); } |
| 920 |
SIMDE_FUNCTION_ATTRIBUTES simde_svuint64_t simde_svand_m(simde_svbool_t pg, simde_svuint64_t op1, uint64_t op2) { return simde_svand_n_u64_m(pg, op1, op2); } |
| 921 |
|
| 922 |
SIMDE_FUNCTION_ATTRIBUTES simde_svint8_t simde_svand_x(simde_svbool_t pg, simde_svint8_t op1, int8_t op2) { return simde_svand_n_s8_x(pg, op1, op2); } |
| 923 |
SIMDE_FUNCTION_ATTRIBUTES simde_svint16_t simde_svand_x(simde_svbool_t pg, simde_svint16_t op1, int16_t op2) { return simde_svand_n_s16_x(pg, op1, op2); } |
| 924 |
SIMDE_FUNCTION_ATTRIBUTES simde_svint32_t simde_svand_x(simde_svbool_t pg, simde_svint32_t op1, int32_t op2) { return simde_svand_n_s32_x(pg, op1, op2); } |
| 925 |
SIMDE_FUNCTION_ATTRIBUTES simde_svint64_t simde_svand_x(simde_svbool_t pg, simde_svint64_t op1, int64_t op2) { return simde_svand_n_s64_x(pg, op1, op2); } |
| 926 |
SIMDE_FUNCTION_ATTRIBUTES simde_svuint8_t simde_svand_x(simde_svbool_t pg, simde_svuint8_t op1, uint8_t op2) { return simde_svand_n_u8_x(pg, op1, op2); } |
| 927 |
SIMDE_FUNCTION_ATTRIBUTES simde_svuint16_t simde_svand_x(simde_svbool_t pg, simde_svuint16_t op1, uint16_t op2) { return simde_svand_n_u16_x(pg, op1, op2); } |
| 928 |
SIMDE_FUNCTION_ATTRIBUTES simde_svuint32_t simde_svand_x(simde_svbool_t pg, simde_svuint32_t op1, uint32_t op2) { return simde_svand_n_u32_x(pg, op1, op2); } |
| 929 |
SIMDE_FUNCTION_ATTRIBUTES simde_svuint64_t simde_svand_x(simde_svbool_t pg, simde_svuint64_t op1, uint64_t op2) { return simde_svand_n_u64_x(pg, op1, op2); } |
| 930 |
#elif defined(SIMDE_GENERIC_) |
| 931 |
#define simde_svand_z(pg, op1, op2) \ |
| 932 |
(SIMDE_GENERIC_((op2), \ |
| 933 |
simde_svint8_t: simde_svand_s8_z, \ |
| 934 |
simde_svint16_t: simde_svand_s16_z, \ |
| 935 |
simde_svint32_t: simde_svand_s32_z, \ |
| 936 |
simde_svint64_t: simde_svand_s64_z, \ |
| 937 |
simde_svuint8_t: simde_svand_u8_z, \ |
| 938 |
simde_svuint16_t: simde_svand_u16_z, \ |
| 939 |
simde_svuint32_t: simde_svand_u32_z, \ |
| 940 |
simde_svuint64_t: simde_svand_u64_z, \ |
| 941 |
int8_t: simde_svand_n_s8_z, \ |
| 942 |
int16_t: simde_svand_n_s16_z, \ |
| 943 |
int32_t: simde_svand_n_s32_z, \ |
| 944 |
int64_t: simde_svand_n_s64_z, \ |
| 945 |
uint8_t: simde_svand_n_u8_z, \ |
| 946 |
uint16_t: simde_svand_n_u16_z, \ |
| 947 |
uint32_t: simde_svand_n_u32_z, \ |
| 948 |
uint64_t: simde_svand_n_u64_z)((pg), (op1), (op2))) |
| 949 |
|
| 950 |
#define simde_svand_m(pg, op1, op2) \ |
| 951 |
(SIMDE_GENERIC_((op2), \ |
| 952 |
simde_svint8_t: simde_svand_s8_m, \ |
| 953 |
simde_svint16_t: simde_svand_s16_m, \ |
| 954 |
simde_svint32_t: simde_svand_s32_m, \ |
| 955 |
simde_svint64_t: simde_svand_s64_m, \ |
| 956 |
simde_svuint8_t: simde_svand_u8_m, \ |
| 957 |
simde_svuint16_t: simde_svand_u16_m, \ |
| 958 |
simde_svuint32_t: simde_svand_u32_m, \ |
| 959 |
simde_svuint64_t: simde_svand_u64_m, \ |
| 960 |
int8_t: simde_svand_n_s8_m, \ |
| 961 |
int16_t: simde_svand_n_s16_m, \ |
| 962 |
int32_t: simde_svand_n_s32_m, \ |
| 963 |
int64_t: simde_svand_n_s64_m, \ |
| 964 |
uint8_t: simde_svand_n_u8_m, \ |
| 965 |
uint16_t: simde_svand_n_u16_m, \ |
| 966 |
uint32_t: simde_svand_n_u32_m, \ |
| 967 |
uint64_t: simde_svand_n_u64_m)((pg), (op1), (op2))) |
| 968 |
|
| 969 |
#define simde_svand_x(pg, op1, op2) \ |
| 970 |
(SIMDE_GENERIC_((op2), \ |
| 971 |
simde_svint8_t: simde_svand_s8_x, \ |
| 972 |
simde_svint16_t: simde_svand_s16_x, \ |
| 973 |
simde_svint32_t: simde_svand_s32_x, \ |
| 974 |
simde_svint64_t: simde_svand_s64_x, \ |
| 975 |
simde_svuint8_t: simde_svand_u8_x, \ |
| 976 |
simde_svuint16_t: simde_svand_u16_x, \ |
| 977 |
simde_svuint32_t: simde_svand_u32_x, \ |
| 978 |
simde_svuint64_t: simde_svand_u64_x, \ |
| 979 |
int8_t: simde_svand_n_s8_x, \ |
| 980 |
int16_t: simde_svand_n_s16_x, \ |
| 981 |
int32_t: simde_svand_n_s32_x, \ |
| 982 |
int64_t: simde_svand_n_s64_x, \ |
| 983 |
uint8_t: simde_svand_n_u8_x, \ |
| 984 |
uint16_t: simde_svand_n_u16_x, \ |
| 985 |
uint32_t: simde_svand_n_u32_x, \ |
| 986 |
uint64_t: simde_svand_n_u64_x)((pg), (op1), (op2))) |
| 987 |
#endif |
| 988 |
#if defined(SIMDE_ARM_SVE_ENABLE_NATIVE_ALIASES) |
| 989 |
#undef svand_x |
| 990 |
#undef svand_z |
| 991 |
#undef svand_m |
| 992 |
#define svand_x(pg, op1, op2) simde_svand_x((pg), (op1), (op2)) |
| 993 |
#define svand_z(pg, op1, op2) simde_svand_z((pg), (op1), (op2)) |
| 994 |
#define svand_m(pg, op1, op2) simde_svand_m((pg), (op1), (op2)) |
| 995 |
#endif |
| 996 |
|
| 997 |
HEDLEY_DIAGNOSTIC_POP |
| 998 |
|
| 999 |
#endif /* SIMDE_ARM_SVE_AND_H */ |