2015-11-11 16:00:39 +08:00
|
|
|
/*===---- avx512vldqintrin.h - AVX512VL and AVX512DQ intrinsics ------------===
|
2015-04-30 17:24:29 +08:00
|
|
|
*
|
2019-04-09 04:51:30 +08:00
|
|
|
* Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
* See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2015-04-30 17:24:29 +08:00
|
|
|
*
|
|
|
|
*===-----------------------------------------------------------------------===
|
|
|
|
*/
|
2015-09-12 10:55:19 +08:00
|
|
|
|
2015-04-30 17:24:29 +08:00
|
|
|
#ifndef __IMMINTRIN_H
|
|
|
|
#error "Never use <avx512vldqintrin.h> directly; include <immintrin.h> instead."
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __AVX512VLDQINTRIN_H
|
|
|
|
#define __AVX512VLDQINTRIN_H
|
|
|
|
|
2015-06-17 15:09:20 +08:00
|
|
|
/* Define the default attributes for the functions in this file. */
|
2018-07-10 03:00:16 +08:00
|
|
|
#define __DEFAULT_FN_ATTRS128 __attribute__((__always_inline__, __nodebug__, __target__("avx512vl,avx512dq"), __min_vector_width__(128)))
|
|
|
|
#define __DEFAULT_FN_ATTRS256 __attribute__((__always_inline__, __nodebug__, __target__("avx512vl,avx512dq"), __min_vector_width__(256)))
|
2015-04-30 17:24:29 +08:00
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256i __DEFAULT_FN_ATTRS256
|
2015-04-30 17:24:29 +08:00
|
|
|
_mm256_mullo_epi64 (__m256i __A, __m256i __B) {
|
2016-06-04 13:43:41 +08:00
|
|
|
return (__m256i) ((__v4du) __A * (__v4du) __B);
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256i __DEFAULT_FN_ATTRS256
|
2016-09-04 03:19:49 +08:00
|
|
|
_mm256_mask_mullo_epi64(__m256i __W, __mmask8 __U, __m256i __A, __m256i __B) {
|
|
|
|
return (__m256i)__builtin_ia32_selectq_256((__mmask8)__U,
|
|
|
|
(__v4di)_mm256_mullo_epi64(__A, __B),
|
|
|
|
(__v4di)__W);
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256i __DEFAULT_FN_ATTRS256
|
2016-09-04 03:19:49 +08:00
|
|
|
_mm256_maskz_mullo_epi64(__mmask8 __U, __m256i __A, __m256i __B) {
|
|
|
|
return (__m256i)__builtin_ia32_selectq_256((__mmask8)__U,
|
|
|
|
(__v4di)_mm256_mullo_epi64(__A, __B),
|
|
|
|
(__v4di)_mm256_setzero_si256());
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128i __DEFAULT_FN_ATTRS128
|
2015-04-30 17:24:29 +08:00
|
|
|
_mm_mullo_epi64 (__m128i __A, __m128i __B) {
|
2016-06-04 13:43:41 +08:00
|
|
|
return (__m128i) ((__v2du) __A * (__v2du) __B);
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128i __DEFAULT_FN_ATTRS128
|
2016-09-04 03:19:49 +08:00
|
|
|
_mm_mask_mullo_epi64(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) {
|
|
|
|
return (__m128i)__builtin_ia32_selectq_128((__mmask8)__U,
|
|
|
|
(__v2di)_mm_mullo_epi64(__A, __B),
|
|
|
|
(__v2di)__W);
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128i __DEFAULT_FN_ATTRS128
|
2016-09-04 03:19:49 +08:00
|
|
|
_mm_maskz_mullo_epi64(__mmask8 __U, __m128i __A, __m128i __B) {
|
|
|
|
return (__m128i)__builtin_ia32_selectq_128((__mmask8)__U,
|
|
|
|
(__v2di)_mm_mullo_epi64(__A, __B),
|
|
|
|
(__v2di)_mm_setzero_si128());
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256d __DEFAULT_FN_ATTRS256
|
2016-08-31 13:38:58 +08:00
|
|
|
_mm256_mask_andnot_pd(__m256d __W, __mmask8 __U, __m256d __A, __m256d __B) {
|
|
|
|
return (__m256d)__builtin_ia32_selectpd_256((__mmask8)__U,
|
|
|
|
(__v4df)_mm256_andnot_pd(__A, __B),
|
|
|
|
(__v4df)__W);
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256d __DEFAULT_FN_ATTRS256
|
2016-08-31 13:38:58 +08:00
|
|
|
_mm256_maskz_andnot_pd(__mmask8 __U, __m256d __A, __m256d __B) {
|
|
|
|
return (__m256d)__builtin_ia32_selectpd_256((__mmask8)__U,
|
|
|
|
(__v4df)_mm256_andnot_pd(__A, __B),
|
|
|
|
(__v4df)_mm256_setzero_pd());
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128d __DEFAULT_FN_ATTRS128
|
2016-08-31 13:38:58 +08:00
|
|
|
_mm_mask_andnot_pd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) {
|
|
|
|
return (__m128d)__builtin_ia32_selectpd_128((__mmask8)__U,
|
|
|
|
(__v2df)_mm_andnot_pd(__A, __B),
|
|
|
|
(__v2df)__W);
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128d __DEFAULT_FN_ATTRS128
|
2016-08-31 13:38:58 +08:00
|
|
|
_mm_maskz_andnot_pd(__mmask8 __U, __m128d __A, __m128d __B) {
|
|
|
|
return (__m128d)__builtin_ia32_selectpd_128((__mmask8)__U,
|
|
|
|
(__v2df)_mm_andnot_pd(__A, __B),
|
|
|
|
(__v2df)_mm_setzero_pd());
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256 __DEFAULT_FN_ATTRS256
|
2016-08-31 13:38:58 +08:00
|
|
|
_mm256_mask_andnot_ps(__m256 __W, __mmask8 __U, __m256 __A, __m256 __B) {
|
|
|
|
return (__m256)__builtin_ia32_selectps_256((__mmask8)__U,
|
|
|
|
(__v8sf)_mm256_andnot_ps(__A, __B),
|
|
|
|
(__v8sf)__W);
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256 __DEFAULT_FN_ATTRS256
|
2016-08-31 13:38:58 +08:00
|
|
|
_mm256_maskz_andnot_ps(__mmask8 __U, __m256 __A, __m256 __B) {
|
|
|
|
return (__m256)__builtin_ia32_selectps_256((__mmask8)__U,
|
|
|
|
(__v8sf)_mm256_andnot_ps(__A, __B),
|
|
|
|
(__v8sf)_mm256_setzero_ps());
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128 __DEFAULT_FN_ATTRS128
|
2016-08-31 13:38:58 +08:00
|
|
|
_mm_mask_andnot_ps(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) {
|
|
|
|
return (__m128)__builtin_ia32_selectps_128((__mmask8)__U,
|
|
|
|
(__v4sf)_mm_andnot_ps(__A, __B),
|
|
|
|
(__v4sf)__W);
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128 __DEFAULT_FN_ATTRS128
|
2016-08-31 13:38:58 +08:00
|
|
|
_mm_maskz_andnot_ps(__mmask8 __U, __m128 __A, __m128 __B) {
|
|
|
|
return (__m128)__builtin_ia32_selectps_128((__mmask8)__U,
|
|
|
|
(__v4sf)_mm_andnot_ps(__A, __B),
|
|
|
|
(__v4sf)_mm_setzero_ps());
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256d __DEFAULT_FN_ATTRS256
|
2016-08-31 13:38:58 +08:00
|
|
|
_mm256_mask_and_pd(__m256d __W, __mmask8 __U, __m256d __A, __m256d __B) {
|
|
|
|
return (__m256d)__builtin_ia32_selectpd_256((__mmask8)__U,
|
|
|
|
(__v4df)_mm256_and_pd(__A, __B),
|
|
|
|
(__v4df)__W);
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256d __DEFAULT_FN_ATTRS256
|
2016-08-31 13:38:58 +08:00
|
|
|
_mm256_maskz_and_pd(__mmask8 __U, __m256d __A, __m256d __B) {
|
|
|
|
return (__m256d)__builtin_ia32_selectpd_256((__mmask8)__U,
|
|
|
|
(__v4df)_mm256_and_pd(__A, __B),
|
|
|
|
(__v4df)_mm256_setzero_pd());
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128d __DEFAULT_FN_ATTRS128
|
2016-08-31 13:38:58 +08:00
|
|
|
_mm_mask_and_pd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) {
|
|
|
|
return (__m128d)__builtin_ia32_selectpd_128((__mmask8)__U,
|
|
|
|
(__v2df)_mm_and_pd(__A, __B),
|
|
|
|
(__v2df)__W);
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128d __DEFAULT_FN_ATTRS128
|
2016-08-31 13:38:58 +08:00
|
|
|
_mm_maskz_and_pd(__mmask8 __U, __m128d __A, __m128d __B) {
|
|
|
|
return (__m128d)__builtin_ia32_selectpd_128((__mmask8)__U,
|
|
|
|
(__v2df)_mm_and_pd(__A, __B),
|
|
|
|
(__v2df)_mm_setzero_pd());
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256 __DEFAULT_FN_ATTRS256
|
2016-08-31 13:38:58 +08:00
|
|
|
_mm256_mask_and_ps(__m256 __W, __mmask8 __U, __m256 __A, __m256 __B) {
|
|
|
|
return (__m256)__builtin_ia32_selectps_256((__mmask8)__U,
|
|
|
|
(__v8sf)_mm256_and_ps(__A, __B),
|
|
|
|
(__v8sf)__W);
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256 __DEFAULT_FN_ATTRS256
|
2016-08-31 13:38:58 +08:00
|
|
|
_mm256_maskz_and_ps(__mmask8 __U, __m256 __A, __m256 __B) {
|
|
|
|
return (__m256)__builtin_ia32_selectps_256((__mmask8)__U,
|
|
|
|
(__v8sf)_mm256_and_ps(__A, __B),
|
|
|
|
(__v8sf)_mm256_setzero_ps());
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128 __DEFAULT_FN_ATTRS128
|
2016-08-31 13:38:58 +08:00
|
|
|
_mm_mask_and_ps(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) {
|
|
|
|
return (__m128)__builtin_ia32_selectps_128((__mmask8)__U,
|
|
|
|
(__v4sf)_mm_and_ps(__A, __B),
|
|
|
|
(__v4sf)__W);
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128 __DEFAULT_FN_ATTRS128
|
2016-08-31 13:38:58 +08:00
|
|
|
_mm_maskz_and_ps(__mmask8 __U, __m128 __A, __m128 __B) {
|
|
|
|
return (__m128)__builtin_ia32_selectps_128((__mmask8)__U,
|
|
|
|
(__v4sf)_mm_and_ps(__A, __B),
|
|
|
|
(__v4sf)_mm_setzero_ps());
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256d __DEFAULT_FN_ATTRS256
|
2016-08-31 13:38:58 +08:00
|
|
|
_mm256_mask_xor_pd(__m256d __W, __mmask8 __U, __m256d __A, __m256d __B) {
|
|
|
|
return (__m256d)__builtin_ia32_selectpd_256((__mmask8)__U,
|
|
|
|
(__v4df)_mm256_xor_pd(__A, __B),
|
|
|
|
(__v4df)__W);
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256d __DEFAULT_FN_ATTRS256
|
2016-08-31 13:38:58 +08:00
|
|
|
_mm256_maskz_xor_pd(__mmask8 __U, __m256d __A, __m256d __B) {
|
|
|
|
return (__m256d)__builtin_ia32_selectpd_256((__mmask8)__U,
|
|
|
|
(__v4df)_mm256_xor_pd(__A, __B),
|
|
|
|
(__v4df)_mm256_setzero_pd());
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128d __DEFAULT_FN_ATTRS128
|
2016-08-31 13:38:58 +08:00
|
|
|
_mm_mask_xor_pd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) {
|
|
|
|
return (__m128d)__builtin_ia32_selectpd_128((__mmask8)__U,
|
|
|
|
(__v2df)_mm_xor_pd(__A, __B),
|
|
|
|
(__v2df)__W);
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128d __DEFAULT_FN_ATTRS128
|
2015-04-30 17:24:29 +08:00
|
|
|
_mm_maskz_xor_pd (__mmask8 __U, __m128d __A, __m128d __B) {
|
2016-08-31 13:38:58 +08:00
|
|
|
return (__m128d)__builtin_ia32_selectpd_128((__mmask8)__U,
|
|
|
|
(__v2df)_mm_xor_pd(__A, __B),
|
|
|
|
(__v2df)_mm_setzero_pd());
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256 __DEFAULT_FN_ATTRS256
|
2016-08-31 13:38:58 +08:00
|
|
|
_mm256_mask_xor_ps(__m256 __W, __mmask8 __U, __m256 __A, __m256 __B) {
|
|
|
|
return (__m256)__builtin_ia32_selectps_256((__mmask8)__U,
|
|
|
|
(__v8sf)_mm256_xor_ps(__A, __B),
|
|
|
|
(__v8sf)__W);
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256 __DEFAULT_FN_ATTRS256
|
2016-08-31 13:38:58 +08:00
|
|
|
_mm256_maskz_xor_ps(__mmask8 __U, __m256 __A, __m256 __B) {
|
|
|
|
return (__m256)__builtin_ia32_selectps_256((__mmask8)__U,
|
|
|
|
(__v8sf)_mm256_xor_ps(__A, __B),
|
|
|
|
(__v8sf)_mm256_setzero_ps());
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128 __DEFAULT_FN_ATTRS128
|
2016-08-31 13:38:58 +08:00
|
|
|
_mm_mask_xor_ps(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) {
|
|
|
|
return (__m128)__builtin_ia32_selectps_128((__mmask8)__U,
|
|
|
|
(__v4sf)_mm_xor_ps(__A, __B),
|
|
|
|
(__v4sf)__W);
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128 __DEFAULT_FN_ATTRS128
|
2016-08-31 13:38:58 +08:00
|
|
|
_mm_maskz_xor_ps(__mmask8 __U, __m128 __A, __m128 __B) {
|
|
|
|
return (__m128)__builtin_ia32_selectps_128((__mmask8)__U,
|
|
|
|
(__v4sf)_mm_xor_ps(__A, __B),
|
|
|
|
(__v4sf)_mm_setzero_ps());
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256d __DEFAULT_FN_ATTRS256
|
2016-08-31 13:38:58 +08:00
|
|
|
_mm256_mask_or_pd(__m256d __W, __mmask8 __U, __m256d __A, __m256d __B) {
|
|
|
|
return (__m256d)__builtin_ia32_selectpd_256((__mmask8)__U,
|
|
|
|
(__v4df)_mm256_or_pd(__A, __B),
|
|
|
|
(__v4df)__W);
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256d __DEFAULT_FN_ATTRS256
|
2016-08-31 13:38:58 +08:00
|
|
|
_mm256_maskz_or_pd(__mmask8 __U, __m256d __A, __m256d __B) {
|
|
|
|
return (__m256d)__builtin_ia32_selectpd_256((__mmask8)__U,
|
|
|
|
(__v4df)_mm256_or_pd(__A, __B),
|
|
|
|
(__v4df)_mm256_setzero_pd());
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128d __DEFAULT_FN_ATTRS128
|
2016-08-31 13:38:58 +08:00
|
|
|
_mm_mask_or_pd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) {
|
|
|
|
return (__m128d)__builtin_ia32_selectpd_128((__mmask8)__U,
|
|
|
|
(__v2df)_mm_or_pd(__A, __B),
|
|
|
|
(__v2df)__W);
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128d __DEFAULT_FN_ATTRS128
|
2016-08-31 13:38:58 +08:00
|
|
|
_mm_maskz_or_pd(__mmask8 __U, __m128d __A, __m128d __B) {
|
|
|
|
return (__m128d)__builtin_ia32_selectpd_128((__mmask8)__U,
|
|
|
|
(__v2df)_mm_or_pd(__A, __B),
|
|
|
|
(__v2df)_mm_setzero_pd());
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256 __DEFAULT_FN_ATTRS256
|
2016-08-31 13:38:58 +08:00
|
|
|
_mm256_mask_or_ps(__m256 __W, __mmask8 __U, __m256 __A, __m256 __B) {
|
|
|
|
return (__m256)__builtin_ia32_selectps_256((__mmask8)__U,
|
|
|
|
(__v8sf)_mm256_or_ps(__A, __B),
|
|
|
|
(__v8sf)__W);
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256 __DEFAULT_FN_ATTRS256
|
2016-08-31 13:38:58 +08:00
|
|
|
_mm256_maskz_or_ps(__mmask8 __U, __m256 __A, __m256 __B) {
|
|
|
|
return (__m256)__builtin_ia32_selectps_256((__mmask8)__U,
|
|
|
|
(__v8sf)_mm256_or_ps(__A, __B),
|
|
|
|
(__v8sf)_mm256_setzero_ps());
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128 __DEFAULT_FN_ATTRS128
|
2016-08-31 13:38:58 +08:00
|
|
|
_mm_mask_or_ps(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) {
|
|
|
|
return (__m128)__builtin_ia32_selectps_128((__mmask8)__U,
|
|
|
|
(__v4sf)_mm_or_ps(__A, __B),
|
|
|
|
(__v4sf)__W);
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128 __DEFAULT_FN_ATTRS128
|
2016-08-31 13:38:58 +08:00
|
|
|
_mm_maskz_or_ps(__mmask8 __U, __m128 __A, __m128 __B) {
|
|
|
|
return (__m128)__builtin_ia32_selectps_128((__mmask8)__U,
|
|
|
|
(__v4sf)_mm_or_ps(__A, __B),
|
|
|
|
(__v4sf)_mm_setzero_ps());
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128i __DEFAULT_FN_ATTRS128
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm_cvtpd_epi64 (__m128d __A) {
|
|
|
|
return (__m128i) __builtin_ia32_cvtpd2qq128_mask ((__v2df) __A,
|
|
|
|
(__v2di) _mm_setzero_si128(),
|
|
|
|
(__mmask8) -1);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128i __DEFAULT_FN_ATTRS128
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm_mask_cvtpd_epi64 (__m128i __W, __mmask8 __U, __m128d __A) {
|
|
|
|
return (__m128i) __builtin_ia32_cvtpd2qq128_mask ((__v2df) __A,
|
|
|
|
(__v2di) __W,
|
|
|
|
(__mmask8) __U);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128i __DEFAULT_FN_ATTRS128
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm_maskz_cvtpd_epi64 (__mmask8 __U, __m128d __A) {
|
|
|
|
return (__m128i) __builtin_ia32_cvtpd2qq128_mask ((__v2df) __A,
|
|
|
|
(__v2di) _mm_setzero_si128(),
|
|
|
|
(__mmask8) __U);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256i __DEFAULT_FN_ATTRS256
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm256_cvtpd_epi64 (__m256d __A) {
|
|
|
|
return (__m256i) __builtin_ia32_cvtpd2qq256_mask ((__v4df) __A,
|
|
|
|
(__v4di) _mm256_setzero_si256(),
|
|
|
|
(__mmask8) -1);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256i __DEFAULT_FN_ATTRS256
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm256_mask_cvtpd_epi64 (__m256i __W, __mmask8 __U, __m256d __A) {
|
|
|
|
return (__m256i) __builtin_ia32_cvtpd2qq256_mask ((__v4df) __A,
|
|
|
|
(__v4di) __W,
|
|
|
|
(__mmask8) __U);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256i __DEFAULT_FN_ATTRS256
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm256_maskz_cvtpd_epi64 (__mmask8 __U, __m256d __A) {
|
|
|
|
return (__m256i) __builtin_ia32_cvtpd2qq256_mask ((__v4df) __A,
|
|
|
|
(__v4di) _mm256_setzero_si256(),
|
|
|
|
(__mmask8) __U);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128i __DEFAULT_FN_ATTRS128
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm_cvtpd_epu64 (__m128d __A) {
|
|
|
|
return (__m128i) __builtin_ia32_cvtpd2uqq128_mask ((__v2df) __A,
|
|
|
|
(__v2di) _mm_setzero_si128(),
|
|
|
|
(__mmask8) -1);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128i __DEFAULT_FN_ATTRS128
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm_mask_cvtpd_epu64 (__m128i __W, __mmask8 __U, __m128d __A) {
|
|
|
|
return (__m128i) __builtin_ia32_cvtpd2uqq128_mask ((__v2df) __A,
|
|
|
|
(__v2di) __W,
|
|
|
|
(__mmask8) __U);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128i __DEFAULT_FN_ATTRS128
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm_maskz_cvtpd_epu64 (__mmask8 __U, __m128d __A) {
|
|
|
|
return (__m128i) __builtin_ia32_cvtpd2uqq128_mask ((__v2df) __A,
|
|
|
|
(__v2di) _mm_setzero_si128(),
|
|
|
|
(__mmask8) __U);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256i __DEFAULT_FN_ATTRS256
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm256_cvtpd_epu64 (__m256d __A) {
|
|
|
|
return (__m256i) __builtin_ia32_cvtpd2uqq256_mask ((__v4df) __A,
|
|
|
|
(__v4di) _mm256_setzero_si256(),
|
|
|
|
(__mmask8) -1);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256i __DEFAULT_FN_ATTRS256
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm256_mask_cvtpd_epu64 (__m256i __W, __mmask8 __U, __m256d __A) {
|
|
|
|
return (__m256i) __builtin_ia32_cvtpd2uqq256_mask ((__v4df) __A,
|
|
|
|
(__v4di) __W,
|
|
|
|
(__mmask8) __U);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256i __DEFAULT_FN_ATTRS256
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm256_maskz_cvtpd_epu64 (__mmask8 __U, __m256d __A) {
|
|
|
|
return (__m256i) __builtin_ia32_cvtpd2uqq256_mask ((__v4df) __A,
|
|
|
|
(__v4di) _mm256_setzero_si256(),
|
|
|
|
(__mmask8) __U);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128i __DEFAULT_FN_ATTRS128
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm_cvtps_epi64 (__m128 __A) {
|
|
|
|
return (__m128i) __builtin_ia32_cvtps2qq128_mask ((__v4sf) __A,
|
|
|
|
(__v2di) _mm_setzero_si128(),
|
|
|
|
(__mmask8) -1);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128i __DEFAULT_FN_ATTRS128
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm_mask_cvtps_epi64 (__m128i __W, __mmask8 __U, __m128 __A) {
|
|
|
|
return (__m128i) __builtin_ia32_cvtps2qq128_mask ((__v4sf) __A,
|
|
|
|
(__v2di) __W,
|
|
|
|
(__mmask8) __U);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128i __DEFAULT_FN_ATTRS128
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm_maskz_cvtps_epi64 (__mmask8 __U, __m128 __A) {
|
|
|
|
return (__m128i) __builtin_ia32_cvtps2qq128_mask ((__v4sf) __A,
|
|
|
|
(__v2di) _mm_setzero_si128(),
|
|
|
|
(__mmask8) __U);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256i __DEFAULT_FN_ATTRS256
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm256_cvtps_epi64 (__m128 __A) {
|
|
|
|
return (__m256i) __builtin_ia32_cvtps2qq256_mask ((__v4sf) __A,
|
|
|
|
(__v4di) _mm256_setzero_si256(),
|
|
|
|
(__mmask8) -1);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256i __DEFAULT_FN_ATTRS256
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm256_mask_cvtps_epi64 (__m256i __W, __mmask8 __U, __m128 __A) {
|
|
|
|
return (__m256i) __builtin_ia32_cvtps2qq256_mask ((__v4sf) __A,
|
|
|
|
(__v4di) __W,
|
|
|
|
(__mmask8) __U);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256i __DEFAULT_FN_ATTRS256
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm256_maskz_cvtps_epi64 (__mmask8 __U, __m128 __A) {
|
|
|
|
return (__m256i) __builtin_ia32_cvtps2qq256_mask ((__v4sf) __A,
|
|
|
|
(__v4di) _mm256_setzero_si256(),
|
|
|
|
(__mmask8) __U);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128i __DEFAULT_FN_ATTRS128
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm_cvtps_epu64 (__m128 __A) {
|
|
|
|
return (__m128i) __builtin_ia32_cvtps2uqq128_mask ((__v4sf) __A,
|
|
|
|
(__v2di) _mm_setzero_si128(),
|
|
|
|
(__mmask8) -1);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128i __DEFAULT_FN_ATTRS128
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm_mask_cvtps_epu64 (__m128i __W, __mmask8 __U, __m128 __A) {
|
|
|
|
return (__m128i) __builtin_ia32_cvtps2uqq128_mask ((__v4sf) __A,
|
|
|
|
(__v2di) __W,
|
|
|
|
(__mmask8) __U);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128i __DEFAULT_FN_ATTRS128
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm_maskz_cvtps_epu64 (__mmask8 __U, __m128 __A) {
|
|
|
|
return (__m128i) __builtin_ia32_cvtps2uqq128_mask ((__v4sf) __A,
|
|
|
|
(__v2di) _mm_setzero_si128(),
|
|
|
|
(__mmask8) __U);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256i __DEFAULT_FN_ATTRS256
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm256_cvtps_epu64 (__m128 __A) {
|
|
|
|
return (__m256i) __builtin_ia32_cvtps2uqq256_mask ((__v4sf) __A,
|
|
|
|
(__v4di) _mm256_setzero_si256(),
|
|
|
|
(__mmask8) -1);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256i __DEFAULT_FN_ATTRS256
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm256_mask_cvtps_epu64 (__m256i __W, __mmask8 __U, __m128 __A) {
|
|
|
|
return (__m256i) __builtin_ia32_cvtps2uqq256_mask ((__v4sf) __A,
|
|
|
|
(__v4di) __W,
|
|
|
|
(__mmask8) __U);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256i __DEFAULT_FN_ATTRS256
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm256_maskz_cvtps_epu64 (__mmask8 __U, __m128 __A) {
|
|
|
|
return (__m256i) __builtin_ia32_cvtps2uqq256_mask ((__v4sf) __A,
|
|
|
|
(__v4di) _mm256_setzero_si256(),
|
|
|
|
(__mmask8) __U);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128d __DEFAULT_FN_ATTRS128
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm_cvtepi64_pd (__m128i __A) {
|
2018-05-22 04:19:17 +08:00
|
|
|
return (__m128d)__builtin_convertvector((__v2di)__A, __v2df);
|
2015-08-02 20:43:08 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128d __DEFAULT_FN_ATTRS128
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm_mask_cvtepi64_pd (__m128d __W, __mmask8 __U, __m128i __A) {
|
2018-05-22 04:19:17 +08:00
|
|
|
return (__m128d)__builtin_ia32_selectpd_128((__mmask8)__U,
|
|
|
|
(__v2df)_mm_cvtepi64_pd(__A),
|
|
|
|
(__v2df)__W);
|
2015-08-02 20:43:08 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128d __DEFAULT_FN_ATTRS128
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm_maskz_cvtepi64_pd (__mmask8 __U, __m128i __A) {
|
2018-05-22 04:19:17 +08:00
|
|
|
return (__m128d)__builtin_ia32_selectpd_128((__mmask8)__U,
|
|
|
|
(__v2df)_mm_cvtepi64_pd(__A),
|
|
|
|
(__v2df)_mm_setzero_pd());
|
2015-08-02 20:43:08 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256d __DEFAULT_FN_ATTRS256
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm256_cvtepi64_pd (__m256i __A) {
|
2018-05-22 04:19:17 +08:00
|
|
|
return (__m256d)__builtin_convertvector((__v4di)__A, __v4df);
|
2015-08-02 20:43:08 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256d __DEFAULT_FN_ATTRS256
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm256_mask_cvtepi64_pd (__m256d __W, __mmask8 __U, __m256i __A) {
|
2018-05-22 04:19:17 +08:00
|
|
|
return (__m256d)__builtin_ia32_selectpd_256((__mmask8)__U,
|
|
|
|
(__v4df)_mm256_cvtepi64_pd(__A),
|
|
|
|
(__v4df)__W);
|
2015-08-02 20:43:08 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256d __DEFAULT_FN_ATTRS256
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm256_maskz_cvtepi64_pd (__mmask8 __U, __m256i __A) {
|
2018-05-22 04:19:17 +08:00
|
|
|
return (__m256d)__builtin_ia32_selectpd_256((__mmask8)__U,
|
|
|
|
(__v4df)_mm256_cvtepi64_pd(__A),
|
|
|
|
(__v4df)_mm256_setzero_pd());
|
2015-08-02 20:43:08 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128 __DEFAULT_FN_ATTRS128
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm_cvtepi64_ps (__m128i __A) {
|
|
|
|
return (__m128) __builtin_ia32_cvtqq2ps128_mask ((__v2di) __A,
|
|
|
|
(__v4sf) _mm_setzero_ps(),
|
|
|
|
(__mmask8) -1);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128 __DEFAULT_FN_ATTRS128
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm_mask_cvtepi64_ps (__m128 __W, __mmask8 __U, __m128i __A) {
|
|
|
|
return (__m128) __builtin_ia32_cvtqq2ps128_mask ((__v2di) __A,
|
|
|
|
(__v4sf) __W,
|
|
|
|
(__mmask8) __U);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128 __DEFAULT_FN_ATTRS128
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm_maskz_cvtepi64_ps (__mmask8 __U, __m128i __A) {
|
|
|
|
return (__m128) __builtin_ia32_cvtqq2ps128_mask ((__v2di) __A,
|
|
|
|
(__v4sf) _mm_setzero_ps(),
|
|
|
|
(__mmask8) __U);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128 __DEFAULT_FN_ATTRS256
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm256_cvtepi64_ps (__m256i __A) {
|
2019-01-21 03:04:56 +08:00
|
|
|
return (__m128)__builtin_convertvector((__v4di)__A, __v4sf);
|
2015-08-02 20:43:08 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128 __DEFAULT_FN_ATTRS256
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm256_mask_cvtepi64_ps (__m128 __W, __mmask8 __U, __m256i __A) {
|
2019-01-21 03:04:56 +08:00
|
|
|
return (__m128)__builtin_ia32_selectps_128((__mmask8)__U,
|
|
|
|
(__v4sf)_mm256_cvtepi64_ps(__A),
|
|
|
|
(__v4sf)__W);
|
2015-08-02 20:43:08 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128 __DEFAULT_FN_ATTRS256
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm256_maskz_cvtepi64_ps (__mmask8 __U, __m256i __A) {
|
2019-01-21 03:04:56 +08:00
|
|
|
return (__m128)__builtin_ia32_selectps_128((__mmask8)__U,
|
|
|
|
(__v4sf)_mm256_cvtepi64_ps(__A),
|
|
|
|
(__v4sf)_mm_setzero_ps());
|
2015-08-02 20:43:08 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128i __DEFAULT_FN_ATTRS128
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm_cvttpd_epi64 (__m128d __A) {
|
|
|
|
return (__m128i) __builtin_ia32_cvttpd2qq128_mask ((__v2df) __A,
|
|
|
|
(__v2di) _mm_setzero_si128(),
|
|
|
|
(__mmask8) -1);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128i __DEFAULT_FN_ATTRS128
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm_mask_cvttpd_epi64 (__m128i __W, __mmask8 __U, __m128d __A) {
|
|
|
|
return (__m128i) __builtin_ia32_cvttpd2qq128_mask ((__v2df) __A,
|
|
|
|
(__v2di) __W,
|
|
|
|
(__mmask8) __U);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128i __DEFAULT_FN_ATTRS128
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm_maskz_cvttpd_epi64 (__mmask8 __U, __m128d __A) {
|
|
|
|
return (__m128i) __builtin_ia32_cvttpd2qq128_mask ((__v2df) __A,
|
|
|
|
(__v2di) _mm_setzero_si128(),
|
|
|
|
(__mmask8) __U);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256i __DEFAULT_FN_ATTRS256
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm256_cvttpd_epi64 (__m256d __A) {
|
|
|
|
return (__m256i) __builtin_ia32_cvttpd2qq256_mask ((__v4df) __A,
|
|
|
|
(__v4di) _mm256_setzero_si256(),
|
|
|
|
(__mmask8) -1);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256i __DEFAULT_FN_ATTRS256
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm256_mask_cvttpd_epi64 (__m256i __W, __mmask8 __U, __m256d __A) {
|
|
|
|
return (__m256i) __builtin_ia32_cvttpd2qq256_mask ((__v4df) __A,
|
|
|
|
(__v4di) __W,
|
|
|
|
(__mmask8) __U);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256i __DEFAULT_FN_ATTRS256
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm256_maskz_cvttpd_epi64 (__mmask8 __U, __m256d __A) {
|
|
|
|
return (__m256i) __builtin_ia32_cvttpd2qq256_mask ((__v4df) __A,
|
|
|
|
(__v4di) _mm256_setzero_si256(),
|
|
|
|
(__mmask8) __U);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128i __DEFAULT_FN_ATTRS128
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm_cvttpd_epu64 (__m128d __A) {
|
|
|
|
return (__m128i) __builtin_ia32_cvttpd2uqq128_mask ((__v2df) __A,
|
|
|
|
(__v2di) _mm_setzero_si128(),
|
|
|
|
(__mmask8) -1);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128i __DEFAULT_FN_ATTRS128
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm_mask_cvttpd_epu64 (__m128i __W, __mmask8 __U, __m128d __A) {
|
|
|
|
return (__m128i) __builtin_ia32_cvttpd2uqq128_mask ((__v2df) __A,
|
|
|
|
(__v2di) __W,
|
|
|
|
(__mmask8) __U);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128i __DEFAULT_FN_ATTRS128
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm_maskz_cvttpd_epu64 (__mmask8 __U, __m128d __A) {
|
|
|
|
return (__m128i) __builtin_ia32_cvttpd2uqq128_mask ((__v2df) __A,
|
|
|
|
(__v2di) _mm_setzero_si128(),
|
|
|
|
(__mmask8) __U);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256i __DEFAULT_FN_ATTRS256
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm256_cvttpd_epu64 (__m256d __A) {
|
|
|
|
return (__m256i) __builtin_ia32_cvttpd2uqq256_mask ((__v4df) __A,
|
|
|
|
(__v4di) _mm256_setzero_si256(),
|
|
|
|
(__mmask8) -1);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256i __DEFAULT_FN_ATTRS256
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm256_mask_cvttpd_epu64 (__m256i __W, __mmask8 __U, __m256d __A) {
|
|
|
|
return (__m256i) __builtin_ia32_cvttpd2uqq256_mask ((__v4df) __A,
|
|
|
|
(__v4di) __W,
|
|
|
|
(__mmask8) __U);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256i __DEFAULT_FN_ATTRS256
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm256_maskz_cvttpd_epu64 (__mmask8 __U, __m256d __A) {
|
|
|
|
return (__m256i) __builtin_ia32_cvttpd2uqq256_mask ((__v4df) __A,
|
|
|
|
(__v4di) _mm256_setzero_si256(),
|
|
|
|
(__mmask8) __U);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128i __DEFAULT_FN_ATTRS128
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm_cvttps_epi64 (__m128 __A) {
|
|
|
|
return (__m128i) __builtin_ia32_cvttps2qq128_mask ((__v4sf) __A,
|
|
|
|
(__v2di) _mm_setzero_si128(),
|
|
|
|
(__mmask8) -1);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128i __DEFAULT_FN_ATTRS128
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm_mask_cvttps_epi64 (__m128i __W, __mmask8 __U, __m128 __A) {
|
|
|
|
return (__m128i) __builtin_ia32_cvttps2qq128_mask ((__v4sf) __A,
|
|
|
|
(__v2di) __W,
|
|
|
|
(__mmask8) __U);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128i __DEFAULT_FN_ATTRS128
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm_maskz_cvttps_epi64 (__mmask8 __U, __m128 __A) {
|
|
|
|
return (__m128i) __builtin_ia32_cvttps2qq128_mask ((__v4sf) __A,
|
|
|
|
(__v2di) _mm_setzero_si128(),
|
|
|
|
(__mmask8) __U);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256i __DEFAULT_FN_ATTRS256
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm256_cvttps_epi64 (__m128 __A) {
|
|
|
|
return (__m256i) __builtin_ia32_cvttps2qq256_mask ((__v4sf) __A,
|
|
|
|
(__v4di) _mm256_setzero_si256(),
|
|
|
|
(__mmask8) -1);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256i __DEFAULT_FN_ATTRS256
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm256_mask_cvttps_epi64 (__m256i __W, __mmask8 __U, __m128 __A) {
|
|
|
|
return (__m256i) __builtin_ia32_cvttps2qq256_mask ((__v4sf) __A,
|
|
|
|
(__v4di) __W,
|
|
|
|
(__mmask8) __U);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256i __DEFAULT_FN_ATTRS256
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm256_maskz_cvttps_epi64 (__mmask8 __U, __m128 __A) {
|
|
|
|
return (__m256i) __builtin_ia32_cvttps2qq256_mask ((__v4sf) __A,
|
|
|
|
(__v4di) _mm256_setzero_si256(),
|
|
|
|
(__mmask8) __U);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128i __DEFAULT_FN_ATTRS128
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm_cvttps_epu64 (__m128 __A) {
|
|
|
|
return (__m128i) __builtin_ia32_cvttps2uqq128_mask ((__v4sf) __A,
|
|
|
|
(__v2di) _mm_setzero_si128(),
|
|
|
|
(__mmask8) -1);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128i __DEFAULT_FN_ATTRS128
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm_mask_cvttps_epu64 (__m128i __W, __mmask8 __U, __m128 __A) {
|
|
|
|
return (__m128i) __builtin_ia32_cvttps2uqq128_mask ((__v4sf) __A,
|
|
|
|
(__v2di) __W,
|
|
|
|
(__mmask8) __U);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128i __DEFAULT_FN_ATTRS128
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm_maskz_cvttps_epu64 (__mmask8 __U, __m128 __A) {
|
|
|
|
return (__m128i) __builtin_ia32_cvttps2uqq128_mask ((__v4sf) __A,
|
|
|
|
(__v2di) _mm_setzero_si128(),
|
|
|
|
(__mmask8) __U);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256i __DEFAULT_FN_ATTRS256
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm256_cvttps_epu64 (__m128 __A) {
|
|
|
|
return (__m256i) __builtin_ia32_cvttps2uqq256_mask ((__v4sf) __A,
|
|
|
|
(__v4di) _mm256_setzero_si256(),
|
|
|
|
(__mmask8) -1);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256i __DEFAULT_FN_ATTRS256
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm256_mask_cvttps_epu64 (__m256i __W, __mmask8 __U, __m128 __A) {
|
|
|
|
return (__m256i) __builtin_ia32_cvttps2uqq256_mask ((__v4sf) __A,
|
|
|
|
(__v4di) __W,
|
|
|
|
(__mmask8) __U);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256i __DEFAULT_FN_ATTRS256
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm256_maskz_cvttps_epu64 (__mmask8 __U, __m128 __A) {
|
|
|
|
return (__m256i) __builtin_ia32_cvttps2uqq256_mask ((__v4sf) __A,
|
|
|
|
(__v4di) _mm256_setzero_si256(),
|
|
|
|
(__mmask8) __U);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128d __DEFAULT_FN_ATTRS128
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm_cvtepu64_pd (__m128i __A) {
|
2018-05-22 04:19:17 +08:00
|
|
|
return (__m128d)__builtin_convertvector((__v2du)__A, __v2df);
|
2015-08-02 20:43:08 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128d __DEFAULT_FN_ATTRS128
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm_mask_cvtepu64_pd (__m128d __W, __mmask8 __U, __m128i __A) {
|
2018-05-22 04:19:17 +08:00
|
|
|
return (__m128d)__builtin_ia32_selectpd_128((__mmask8)__U,
|
|
|
|
(__v2df)_mm_cvtepu64_pd(__A),
|
|
|
|
(__v2df)__W);
|
2015-08-02 20:43:08 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128d __DEFAULT_FN_ATTRS128
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm_maskz_cvtepu64_pd (__mmask8 __U, __m128i __A) {
|
2018-05-22 04:19:17 +08:00
|
|
|
return (__m128d)__builtin_ia32_selectpd_128((__mmask8)__U,
|
|
|
|
(__v2df)_mm_cvtepu64_pd(__A),
|
|
|
|
(__v2df)_mm_setzero_pd());
|
2015-08-02 20:43:08 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256d __DEFAULT_FN_ATTRS256
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm256_cvtepu64_pd (__m256i __A) {
|
2018-05-22 04:19:17 +08:00
|
|
|
return (__m256d)__builtin_convertvector((__v4du)__A, __v4df);
|
2015-08-02 20:43:08 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256d __DEFAULT_FN_ATTRS256
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm256_mask_cvtepu64_pd (__m256d __W, __mmask8 __U, __m256i __A) {
|
2018-05-22 04:19:17 +08:00
|
|
|
return (__m256d)__builtin_ia32_selectpd_256((__mmask8)__U,
|
|
|
|
(__v4df)_mm256_cvtepu64_pd(__A),
|
|
|
|
(__v4df)__W);
|
2015-08-02 20:43:08 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256d __DEFAULT_FN_ATTRS256
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm256_maskz_cvtepu64_pd (__mmask8 __U, __m256i __A) {
|
2018-05-22 04:19:17 +08:00
|
|
|
return (__m256d)__builtin_ia32_selectpd_256((__mmask8)__U,
|
|
|
|
(__v4df)_mm256_cvtepu64_pd(__A),
|
|
|
|
(__v4df)_mm256_setzero_pd());
|
2015-08-02 20:43:08 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128 __DEFAULT_FN_ATTRS128
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm_cvtepu64_ps (__m128i __A) {
|
|
|
|
return (__m128) __builtin_ia32_cvtuqq2ps128_mask ((__v2di) __A,
|
|
|
|
(__v4sf) _mm_setzero_ps(),
|
|
|
|
(__mmask8) -1);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128 __DEFAULT_FN_ATTRS128
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm_mask_cvtepu64_ps (__m128 __W, __mmask8 __U, __m128i __A) {
|
|
|
|
return (__m128) __builtin_ia32_cvtuqq2ps128_mask ((__v2di) __A,
|
|
|
|
(__v4sf) __W,
|
|
|
|
(__mmask8) __U);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128 __DEFAULT_FN_ATTRS128
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm_maskz_cvtepu64_ps (__mmask8 __U, __m128i __A) {
|
|
|
|
return (__m128) __builtin_ia32_cvtuqq2ps128_mask ((__v2di) __A,
|
|
|
|
(__v4sf) _mm_setzero_ps(),
|
|
|
|
(__mmask8) __U);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128 __DEFAULT_FN_ATTRS256
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm256_cvtepu64_ps (__m256i __A) {
|
2019-01-21 03:04:56 +08:00
|
|
|
return (__m128)__builtin_convertvector((__v4du)__A, __v4sf);
|
2015-08-02 20:43:08 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128 __DEFAULT_FN_ATTRS256
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm256_mask_cvtepu64_ps (__m128 __W, __mmask8 __U, __m256i __A) {
|
2019-01-21 03:04:56 +08:00
|
|
|
return (__m128)__builtin_ia32_selectps_128((__mmask8)__U,
|
|
|
|
(__v4sf)_mm256_cvtepu64_ps(__A),
|
|
|
|
(__v4sf)__W);
|
2015-08-02 20:43:08 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128 __DEFAULT_FN_ATTRS256
|
2015-08-02 20:43:08 +08:00
|
|
|
_mm256_maskz_cvtepu64_ps (__mmask8 __U, __m256i __A) {
|
2019-01-21 03:04:56 +08:00
|
|
|
return (__m128)__builtin_ia32_selectps_128((__mmask8)__U,
|
|
|
|
(__v4sf)_mm256_cvtepu64_ps(__A),
|
|
|
|
(__v4sf)_mm_setzero_ps());
|
2015-08-02 20:43:08 +08:00
|
|
|
}
|
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm_range_pd(A, B, C) \
|
2016-05-17 12:41:46 +08:00
|
|
|
(__m128d)__builtin_ia32_rangepd128_mask((__v2df)(__m128d)(A), \
|
|
|
|
(__v2df)(__m128d)(B), (int)(C), \
|
|
|
|
(__v2df)_mm_setzero_pd(), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)-1)
|
2016-05-17 12:41:46 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm_mask_range_pd(W, U, A, B, C) \
|
2016-05-17 12:41:46 +08:00
|
|
|
(__m128d)__builtin_ia32_rangepd128_mask((__v2df)(__m128d)(A), \
|
|
|
|
(__v2df)(__m128d)(B), (int)(C), \
|
|
|
|
(__v2df)(__m128d)(W), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)(U))
|
2016-05-17 12:41:46 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm_maskz_range_pd(U, A, B, C) \
|
2016-05-17 12:41:46 +08:00
|
|
|
(__m128d)__builtin_ia32_rangepd128_mask((__v2df)(__m128d)(A), \
|
|
|
|
(__v2df)(__m128d)(B), (int)(C), \
|
|
|
|
(__v2df)_mm_setzero_pd(), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)(U))
|
2016-05-17 12:41:46 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm256_range_pd(A, B, C) \
|
2016-05-17 12:41:46 +08:00
|
|
|
(__m256d)__builtin_ia32_rangepd256_mask((__v4df)(__m256d)(A), \
|
|
|
|
(__v4df)(__m256d)(B), (int)(C), \
|
|
|
|
(__v4df)_mm256_setzero_pd(), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)-1)
|
2016-05-17 12:41:46 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm256_mask_range_pd(W, U, A, B, C) \
|
2016-05-17 12:41:46 +08:00
|
|
|
(__m256d)__builtin_ia32_rangepd256_mask((__v4df)(__m256d)(A), \
|
|
|
|
(__v4df)(__m256d)(B), (int)(C), \
|
|
|
|
(__v4df)(__m256d)(W), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)(U))
|
2016-05-17 12:41:46 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm256_maskz_range_pd(U, A, B, C) \
|
2016-05-17 12:41:46 +08:00
|
|
|
(__m256d)__builtin_ia32_rangepd256_mask((__v4df)(__m256d)(A), \
|
|
|
|
(__v4df)(__m256d)(B), (int)(C), \
|
|
|
|
(__v4df)_mm256_setzero_pd(), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)(U))
|
2016-05-17 12:41:46 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm_range_ps(A, B, C) \
|
2016-05-17 12:41:46 +08:00
|
|
|
(__m128)__builtin_ia32_rangeps128_mask((__v4sf)(__m128)(A), \
|
|
|
|
(__v4sf)(__m128)(B), (int)(C), \
|
|
|
|
(__v4sf)_mm_setzero_ps(), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)-1)
|
2016-05-17 12:41:46 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm_mask_range_ps(W, U, A, B, C) \
|
2016-05-17 12:41:46 +08:00
|
|
|
(__m128)__builtin_ia32_rangeps128_mask((__v4sf)(__m128)(A), \
|
|
|
|
(__v4sf)(__m128)(B), (int)(C), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__v4sf)(__m128)(W), (__mmask8)(U))
|
2016-05-17 12:41:46 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm_maskz_range_ps(U, A, B, C) \
|
2016-05-17 12:41:46 +08:00
|
|
|
(__m128)__builtin_ia32_rangeps128_mask((__v4sf)(__m128)(A), \
|
|
|
|
(__v4sf)(__m128)(B), (int)(C), \
|
|
|
|
(__v4sf)_mm_setzero_ps(), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)(U))
|
2016-05-17 12:41:46 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm256_range_ps(A, B, C) \
|
2016-05-17 12:41:46 +08:00
|
|
|
(__m256)__builtin_ia32_rangeps256_mask((__v8sf)(__m256)(A), \
|
|
|
|
(__v8sf)(__m256)(B), (int)(C), \
|
|
|
|
(__v8sf)_mm256_setzero_ps(), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)-1)
|
2016-05-17 12:41:46 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm256_mask_range_ps(W, U, A, B, C) \
|
2016-05-17 12:41:46 +08:00
|
|
|
(__m256)__builtin_ia32_rangeps256_mask((__v8sf)(__m256)(A), \
|
|
|
|
(__v8sf)(__m256)(B), (int)(C), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__v8sf)(__m256)(W), (__mmask8)(U))
|
2016-05-17 12:41:46 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm256_maskz_range_ps(U, A, B, C) \
|
2016-05-17 12:41:46 +08:00
|
|
|
(__m256)__builtin_ia32_rangeps256_mask((__v8sf)(__m256)(A), \
|
|
|
|
(__v8sf)(__m256)(B), (int)(C), \
|
|
|
|
(__v8sf)_mm256_setzero_ps(), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)(U))
|
2016-05-17 12:41:46 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm_reduce_pd(A, B) \
|
2016-05-17 12:41:46 +08:00
|
|
|
(__m128d)__builtin_ia32_reducepd128_mask((__v2df)(__m128d)(A), (int)(B), \
|
|
|
|
(__v2df)_mm_setzero_pd(), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)-1)
|
2016-05-17 12:41:46 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm_mask_reduce_pd(W, U, A, B) \
|
2016-05-17 12:41:46 +08:00
|
|
|
(__m128d)__builtin_ia32_reducepd128_mask((__v2df)(__m128d)(A), (int)(B), \
|
|
|
|
(__v2df)(__m128d)(W), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)(U))
|
2016-05-17 12:41:46 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm_maskz_reduce_pd(U, A, B) \
|
2016-05-17 12:41:46 +08:00
|
|
|
(__m128d)__builtin_ia32_reducepd128_mask((__v2df)(__m128d)(A), (int)(B), \
|
|
|
|
(__v2df)_mm_setzero_pd(), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)(U))
|
2016-05-17 12:41:46 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm256_reduce_pd(A, B) \
|
2016-05-17 12:41:46 +08:00
|
|
|
(__m256d)__builtin_ia32_reducepd256_mask((__v4df)(__m256d)(A), (int)(B), \
|
|
|
|
(__v4df)_mm256_setzero_pd(), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)-1)
|
2016-05-17 12:41:46 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm256_mask_reduce_pd(W, U, A, B) \
|
2016-05-17 12:41:46 +08:00
|
|
|
(__m256d)__builtin_ia32_reducepd256_mask((__v4df)(__m256d)(A), (int)(B), \
|
|
|
|
(__v4df)(__m256d)(W), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)(U))
|
2016-05-17 12:41:46 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm256_maskz_reduce_pd(U, A, B) \
|
2016-05-17 12:41:46 +08:00
|
|
|
(__m256d)__builtin_ia32_reducepd256_mask((__v4df)(__m256d)(A), (int)(B), \
|
|
|
|
(__v4df)_mm256_setzero_pd(), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)(U))
|
2016-05-17 12:41:46 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm_reduce_ps(A, B) \
|
2016-05-17 12:41:46 +08:00
|
|
|
(__m128)__builtin_ia32_reduceps128_mask((__v4sf)(__m128)(A), (int)(B), \
|
|
|
|
(__v4sf)_mm_setzero_ps(), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)-1)
|
2016-05-17 12:41:46 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm_mask_reduce_ps(W, U, A, B) \
|
2016-05-17 12:41:46 +08:00
|
|
|
(__m128)__builtin_ia32_reduceps128_mask((__v4sf)(__m128)(A), (int)(B), \
|
|
|
|
(__v4sf)(__m128)(W), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)(U))
|
2016-05-17 12:41:46 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm_maskz_reduce_ps(U, A, B) \
|
2016-05-17 12:41:46 +08:00
|
|
|
(__m128)__builtin_ia32_reduceps128_mask((__v4sf)(__m128)(A), (int)(B), \
|
|
|
|
(__v4sf)_mm_setzero_ps(), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)(U))
|
2016-05-17 12:41:46 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm256_reduce_ps(A, B) \
|
2016-05-17 12:41:46 +08:00
|
|
|
(__m256)__builtin_ia32_reduceps256_mask((__v8sf)(__m256)(A), (int)(B), \
|
|
|
|
(__v8sf)_mm256_setzero_ps(), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)-1)
|
2016-05-17 12:41:46 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm256_mask_reduce_ps(W, U, A, B) \
|
2016-05-17 12:41:46 +08:00
|
|
|
(__m256)__builtin_ia32_reduceps256_mask((__v8sf)(__m256)(A), (int)(B), \
|
|
|
|
(__v8sf)(__m256)(W), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)(U))
|
2016-05-17 12:41:46 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm256_maskz_reduce_ps(U, A, B) \
|
2016-05-17 12:41:46 +08:00
|
|
|
(__m256)__builtin_ia32_reduceps256_mask((__v8sf)(__m256)(A), (int)(B), \
|
|
|
|
(__v8sf)_mm256_setzero_ps(), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)(U))
|
2015-08-02 20:43:08 +08:00
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __mmask8 __DEFAULT_FN_ATTRS128
|
2016-04-13 18:49:37 +08:00
|
|
|
_mm_movepi32_mask (__m128i __A)
|
|
|
|
{
|
|
|
|
return (__mmask8) __builtin_ia32_cvtd2mask128 ((__v4si) __A);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __mmask8 __DEFAULT_FN_ATTRS256
|
2016-04-13 18:49:37 +08:00
|
|
|
_mm256_movepi32_mask (__m256i __A)
|
|
|
|
{
|
|
|
|
return (__mmask8) __builtin_ia32_cvtd2mask256 ((__v8si) __A);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128i __DEFAULT_FN_ATTRS128
|
2016-04-13 18:49:37 +08:00
|
|
|
_mm_movm_epi32 (__mmask8 __A)
|
|
|
|
{
|
|
|
|
return (__m128i) __builtin_ia32_cvtmask2d128 (__A);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256i __DEFAULT_FN_ATTRS256
|
2016-04-13 18:49:37 +08:00
|
|
|
_mm256_movm_epi32 (__mmask8 __A)
|
|
|
|
{
|
|
|
|
return (__m256i) __builtin_ia32_cvtmask2d256 (__A);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128i __DEFAULT_FN_ATTRS128
|
2016-04-13 18:49:37 +08:00
|
|
|
_mm_movm_epi64 (__mmask8 __A)
|
|
|
|
{
|
|
|
|
return (__m128i) __builtin_ia32_cvtmask2q128 (__A);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256i __DEFAULT_FN_ATTRS256
|
2016-04-13 18:49:37 +08:00
|
|
|
_mm256_movm_epi64 (__mmask8 __A)
|
|
|
|
{
|
|
|
|
return (__m256i) __builtin_ia32_cvtmask2q256 (__A);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __mmask8 __DEFAULT_FN_ATTRS128
|
2016-04-13 18:49:37 +08:00
|
|
|
_mm_movepi64_mask (__m128i __A)
|
|
|
|
{
|
|
|
|
return (__mmask8) __builtin_ia32_cvtq2mask128 ((__v2di) __A);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __mmask8 __DEFAULT_FN_ATTRS256
|
2016-04-13 18:49:37 +08:00
|
|
|
_mm256_movepi64_mask (__m256i __A)
|
|
|
|
{
|
|
|
|
return (__mmask8) __builtin_ia32_cvtq2mask256 ((__v4di) __A);
|
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256 __DEFAULT_FN_ATTRS256
|
2016-04-13 20:58:01 +08:00
|
|
|
_mm256_broadcast_f32x2 (__m128 __A)
|
|
|
|
{
|
2018-06-05 03:28:09 +08:00
|
|
|
return (__m256)__builtin_shufflevector((__v4sf)__A, (__v4sf)__A,
|
2017-08-31 00:15:12 +08:00
|
|
|
0, 1, 0, 1, 0, 1, 0, 1);
|
2016-04-13 20:58:01 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256 __DEFAULT_FN_ATTRS256
|
2016-04-13 20:58:01 +08:00
|
|
|
_mm256_mask_broadcast_f32x2 (__m256 __O, __mmask8 __M, __m128 __A)
|
|
|
|
{
|
2017-08-31 00:15:12 +08:00
|
|
|
return (__m256)__builtin_ia32_selectps_256((__mmask8)__M,
|
|
|
|
(__v8sf)_mm256_broadcast_f32x2(__A),
|
|
|
|
(__v8sf)__O);
|
2016-04-13 20:58:01 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256 __DEFAULT_FN_ATTRS256
|
2016-04-13 20:58:01 +08:00
|
|
|
_mm256_maskz_broadcast_f32x2 (__mmask8 __M, __m128 __A)
|
|
|
|
{
|
2017-08-31 00:15:12 +08:00
|
|
|
return (__m256)__builtin_ia32_selectps_256((__mmask8)__M,
|
|
|
|
(__v8sf)_mm256_broadcast_f32x2(__A),
|
|
|
|
(__v8sf)_mm256_setzero_ps());
|
2016-04-13 20:58:01 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256d __DEFAULT_FN_ATTRS256
|
2017-01-18 10:17:10 +08:00
|
|
|
_mm256_broadcast_f64x2(__m128d __A)
|
2016-04-13 20:58:01 +08:00
|
|
|
{
|
2017-01-18 10:17:10 +08:00
|
|
|
return (__m256d)__builtin_shufflevector((__v2df)__A, (__v2df)__A,
|
|
|
|
0, 1, 0, 1);
|
2016-04-13 20:58:01 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256d __DEFAULT_FN_ATTRS256
|
2017-01-18 10:17:10 +08:00
|
|
|
_mm256_mask_broadcast_f64x2(__m256d __O, __mmask8 __M, __m128d __A)
|
2016-04-13 20:58:01 +08:00
|
|
|
{
|
2017-01-18 10:17:10 +08:00
|
|
|
return (__m256d)__builtin_ia32_selectpd_256((__mmask8)__M,
|
|
|
|
(__v4df)_mm256_broadcast_f64x2(__A),
|
|
|
|
(__v4df)__O);
|
2016-04-13 20:58:01 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256d __DEFAULT_FN_ATTRS256
|
2016-04-13 20:58:01 +08:00
|
|
|
_mm256_maskz_broadcast_f64x2 (__mmask8 __M, __m128d __A)
|
|
|
|
{
|
2017-01-18 10:17:10 +08:00
|
|
|
return (__m256d)__builtin_ia32_selectpd_256((__mmask8)__M,
|
|
|
|
(__v4df)_mm256_broadcast_f64x2(__A),
|
|
|
|
(__v4df)_mm256_setzero_pd());
|
2016-04-13 20:58:01 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128i __DEFAULT_FN_ATTRS128
|
2016-04-13 20:58:01 +08:00
|
|
|
_mm_broadcast_i32x2 (__m128i __A)
|
|
|
|
{
|
2018-06-05 03:28:09 +08:00
|
|
|
return (__m128i)__builtin_shufflevector((__v4si)__A, (__v4si)__A,
|
2017-08-31 00:15:12 +08:00
|
|
|
0, 1, 0, 1);
|
2016-04-13 20:58:01 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128i __DEFAULT_FN_ATTRS128
|
2016-04-13 20:58:01 +08:00
|
|
|
_mm_mask_broadcast_i32x2 (__m128i __O, __mmask8 __M, __m128i __A)
|
|
|
|
{
|
2017-08-31 00:15:12 +08:00
|
|
|
return (__m128i)__builtin_ia32_selectd_128((__mmask8)__M,
|
|
|
|
(__v4si)_mm_broadcast_i32x2(__A),
|
|
|
|
(__v4si)__O);
|
2016-04-13 20:58:01 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m128i __DEFAULT_FN_ATTRS128
|
2016-04-13 20:58:01 +08:00
|
|
|
_mm_maskz_broadcast_i32x2 (__mmask8 __M, __m128i __A)
|
|
|
|
{
|
2017-08-31 00:15:12 +08:00
|
|
|
return (__m128i)__builtin_ia32_selectd_128((__mmask8)__M,
|
|
|
|
(__v4si)_mm_broadcast_i32x2(__A),
|
|
|
|
(__v4si)_mm_setzero_si128());
|
2016-04-13 20:58:01 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256i __DEFAULT_FN_ATTRS256
|
2016-04-13 20:58:01 +08:00
|
|
|
_mm256_broadcast_i32x2 (__m128i __A)
|
|
|
|
{
|
2018-06-05 03:28:09 +08:00
|
|
|
return (__m256i)__builtin_shufflevector((__v4si)__A, (__v4si)__A,
|
2017-08-31 00:15:12 +08:00
|
|
|
0, 1, 0, 1, 0, 1, 0, 1);
|
2016-04-13 20:58:01 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256i __DEFAULT_FN_ATTRS256
|
2016-04-13 20:58:01 +08:00
|
|
|
_mm256_mask_broadcast_i32x2 (__m256i __O, __mmask8 __M, __m128i __A)
|
|
|
|
{
|
2017-08-31 00:15:12 +08:00
|
|
|
return (__m256i)__builtin_ia32_selectd_256((__mmask8)__M,
|
|
|
|
(__v8si)_mm256_broadcast_i32x2(__A),
|
|
|
|
(__v8si)__O);
|
2016-04-13 20:58:01 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256i __DEFAULT_FN_ATTRS256
|
2016-04-13 20:58:01 +08:00
|
|
|
_mm256_maskz_broadcast_i32x2 (__mmask8 __M, __m128i __A)
|
|
|
|
{
|
2017-08-31 00:15:12 +08:00
|
|
|
return (__m256i)__builtin_ia32_selectd_256((__mmask8)__M,
|
|
|
|
(__v8si)_mm256_broadcast_i32x2(__A),
|
|
|
|
(__v8si)_mm256_setzero_si256());
|
2016-04-13 20:58:01 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256i __DEFAULT_FN_ATTRS256
|
2017-01-18 10:17:10 +08:00
|
|
|
_mm256_broadcast_i64x2(__m128i __A)
|
2016-04-13 20:58:01 +08:00
|
|
|
{
|
2017-01-18 10:17:10 +08:00
|
|
|
return (__m256i)__builtin_shufflevector((__v2di)__A, (__v2di)__A,
|
|
|
|
0, 1, 0, 1);
|
2016-04-13 20:58:01 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256i __DEFAULT_FN_ATTRS256
|
2017-01-18 10:17:10 +08:00
|
|
|
_mm256_mask_broadcast_i64x2(__m256i __O, __mmask8 __M, __m128i __A)
|
2016-04-13 20:58:01 +08:00
|
|
|
{
|
2017-01-18 10:17:10 +08:00
|
|
|
return (__m256i)__builtin_ia32_selectq_256((__mmask8)__M,
|
|
|
|
(__v4di)_mm256_broadcast_i64x2(__A),
|
|
|
|
(__v4di)__O);
|
2016-04-13 20:58:01 +08:00
|
|
|
}
|
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
static __inline__ __m256i __DEFAULT_FN_ATTRS256
|
2016-04-13 20:58:01 +08:00
|
|
|
_mm256_maskz_broadcast_i64x2 (__mmask8 __M, __m128i __A)
|
|
|
|
{
|
2017-01-18 10:17:10 +08:00
|
|
|
return (__m256i)__builtin_ia32_selectq_256((__mmask8)__M,
|
|
|
|
(__v4di)_mm256_broadcast_i64x2(__A),
|
|
|
|
(__v4di)_mm256_setzero_si256());
|
2016-04-13 20:58:01 +08:00
|
|
|
}
|
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm256_extractf64x2_pd(A, imm) \
|
2018-06-09 05:50:07 +08:00
|
|
|
(__m128d)__builtin_ia32_extractf64x2_256_mask((__v4df)(__m256d)(A), \
|
|
|
|
(int)(imm), \
|
|
|
|
(__v2df)_mm_undefined_pd(), \
|
|
|
|
(__mmask8)-1)
|
2016-05-17 12:41:46 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm256_mask_extractf64x2_pd(W, U, A, imm) \
|
2018-06-09 05:50:07 +08:00
|
|
|
(__m128d)__builtin_ia32_extractf64x2_256_mask((__v4df)(__m256d)(A), \
|
|
|
|
(int)(imm), \
|
|
|
|
(__v2df)(__m128d)(W), \
|
|
|
|
(__mmask8)(U))
|
2016-05-17 12:41:46 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm256_maskz_extractf64x2_pd(U, A, imm) \
|
2018-06-09 05:50:07 +08:00
|
|
|
(__m128d)__builtin_ia32_extractf64x2_256_mask((__v4df)(__m256d)(A), \
|
|
|
|
(int)(imm), \
|
|
|
|
(__v2df)_mm_setzero_pd(), \
|
|
|
|
(__mmask8)(U))
|
2016-05-17 12:41:46 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm256_extracti64x2_epi64(A, imm) \
|
2018-06-09 05:50:07 +08:00
|
|
|
(__m128i)__builtin_ia32_extracti64x2_256_mask((__v4di)(__m256i)(A), \
|
|
|
|
(int)(imm), \
|
|
|
|
(__v2di)_mm_undefined_si128(), \
|
|
|
|
(__mmask8)-1)
|
2016-05-17 12:41:46 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm256_mask_extracti64x2_epi64(W, U, A, imm) \
|
2018-06-09 05:50:07 +08:00
|
|
|
(__m128i)__builtin_ia32_extracti64x2_256_mask((__v4di)(__m256i)(A), \
|
|
|
|
(int)(imm), \
|
|
|
|
(__v2di)(__m128i)(W), \
|
|
|
|
(__mmask8)(U))
|
2016-05-17 12:41:46 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm256_maskz_extracti64x2_epi64(U, A, imm) \
|
2018-06-09 05:50:07 +08:00
|
|
|
(__m128i)__builtin_ia32_extracti64x2_256_mask((__v4di)(__m256i)(A), \
|
|
|
|
(int)(imm), \
|
|
|
|
(__v2di)_mm_setzero_si128(), \
|
|
|
|
(__mmask8)(U))
|
2016-05-17 12:41:46 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm256_insertf64x2(A, B, imm) \
|
2018-06-08 11:24:47 +08:00
|
|
|
(__m256d)__builtin_ia32_insertf64x2_256((__v4df)(__m256d)(A), \
|
|
|
|
(__v2df)(__m128d)(B), (int)(imm))
|
2016-05-17 12:41:46 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm256_mask_insertf64x2(W, U, A, B, imm) \
|
2016-11-01 13:47:56 +08:00
|
|
|
(__m256d)__builtin_ia32_selectpd_256((__mmask8)(U), \
|
|
|
|
(__v4df)_mm256_insertf64x2((A), (B), (imm)), \
|
2018-05-31 09:24:40 +08:00
|
|
|
(__v4df)(__m256d)(W))
|
2016-05-17 12:41:46 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm256_maskz_insertf64x2(U, A, B, imm) \
|
2016-11-01 13:47:56 +08:00
|
|
|
(__m256d)__builtin_ia32_selectpd_256((__mmask8)(U), \
|
|
|
|
(__v4df)_mm256_insertf64x2((A), (B), (imm)), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__v4df)_mm256_setzero_pd())
|
2016-05-17 12:41:46 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm256_inserti64x2(A, B, imm) \
|
2018-06-08 11:24:47 +08:00
|
|
|
(__m256i)__builtin_ia32_inserti64x2_256((__v4di)(__m256i)(A), \
|
|
|
|
(__v2di)(__m128i)(B), (int)(imm))
|
2016-05-17 12:41:46 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm256_mask_inserti64x2(W, U, A, B, imm) \
|
2016-11-01 13:47:56 +08:00
|
|
|
(__m256i)__builtin_ia32_selectq_256((__mmask8)(U), \
|
|
|
|
(__v4di)_mm256_inserti64x2((A), (B), (imm)), \
|
2018-05-31 09:24:40 +08:00
|
|
|
(__v4di)(__m256i)(W))
|
2016-05-17 12:41:46 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm256_maskz_inserti64x2(U, A, B, imm) \
|
2016-11-01 13:47:56 +08:00
|
|
|
(__m256i)__builtin_ia32_selectq_256((__mmask8)(U), \
|
|
|
|
(__v4di)_mm256_inserti64x2((A), (B), (imm)), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__v4di)_mm256_setzero_si256())
|
2016-05-17 12:41:46 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm_mask_fpclass_pd_mask(U, A, imm) \
|
2016-05-17 12:41:46 +08:00
|
|
|
(__mmask8)__builtin_ia32_fpclasspd128_mask((__v2df)(__m128d)(A), (int)(imm), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)(U))
|
2016-05-17 12:41:46 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm_fpclass_pd_mask(A, imm) \
|
2016-05-17 12:41:46 +08:00
|
|
|
(__mmask8)__builtin_ia32_fpclasspd128_mask((__v2df)(__m128d)(A), (int)(imm), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)-1)
|
2016-05-17 12:41:46 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm256_mask_fpclass_pd_mask(U, A, imm) \
|
2016-05-17 12:41:46 +08:00
|
|
|
(__mmask8)__builtin_ia32_fpclasspd256_mask((__v4df)(__m256d)(A), (int)(imm), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)(U))
|
2016-05-17 12:41:46 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm256_fpclass_pd_mask(A, imm) \
|
2016-05-17 12:41:46 +08:00
|
|
|
(__mmask8)__builtin_ia32_fpclasspd256_mask((__v4df)(__m256d)(A), (int)(imm), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)-1)
|
2016-05-17 12:41:46 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm_mask_fpclass_ps_mask(U, A, imm) \
|
2016-05-17 12:41:46 +08:00
|
|
|
(__mmask8)__builtin_ia32_fpclassps128_mask((__v4sf)(__m128)(A), (int)(imm), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)(U))
|
2016-05-17 12:41:46 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm_fpclass_ps_mask(A, imm) \
|
2016-05-17 12:41:46 +08:00
|
|
|
(__mmask8)__builtin_ia32_fpclassps128_mask((__v4sf)(__m128)(A), (int)(imm), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)-1)
|
2016-05-17 12:41:46 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm256_mask_fpclass_ps_mask(U, A, imm) \
|
2016-05-17 12:41:46 +08:00
|
|
|
(__mmask8)__builtin_ia32_fpclassps256_mask((__v8sf)(__m256)(A), (int)(imm), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)(U))
|
2016-05-17 12:41:46 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm256_fpclass_ps_mask(A, imm) \
|
2016-05-17 12:41:46 +08:00
|
|
|
(__mmask8)__builtin_ia32_fpclassps256_mask((__v8sf)(__m256)(A), (int)(imm), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)-1)
|
2016-04-25 22:48:23 +08:00
|
|
|
|
2018-07-10 03:00:16 +08:00
|
|
|
#undef __DEFAULT_FN_ATTRS128
|
|
|
|
#undef __DEFAULT_FN_ATTRS256
|
2015-06-17 15:09:20 +08:00
|
|
|
|
2015-04-30 17:24:29 +08:00
|
|
|
#endif
|