2015-04-30 17:24:29 +08:00
|
|
|
/*===---- avx512dqintrin.h - AVX512DQ intrinsics ---------------------------===
|
|
|
|
*
|
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
|
|
|
*
|
|
|
|
*===-----------------------------------------------------------------------===
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __IMMINTRIN_H
|
|
|
|
#error "Never use <avx512dqintrin.h> directly; include <immintrin.h> instead."
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __AVX512DQINTRIN_H
|
|
|
|
#define __AVX512DQINTRIN_H
|
|
|
|
|
2015-06-17 15:09:20 +08:00
|
|
|
/* Define the default attributes for the functions in this file. */
|
2018-08-27 14:20:19 +08:00
|
|
|
#define __DEFAULT_FN_ATTRS512 __attribute__((__always_inline__, __nodebug__, __target__("avx512dq"), __min_vector_width__(512)))
|
2018-08-27 14:20:22 +08:00
|
|
|
#define __DEFAULT_FN_ATTRS __attribute__((__always_inline__, __nodebug__, __target__("avx512dq")))
|
|
|
|
|
|
|
|
static __inline __mmask8 __DEFAULT_FN_ATTRS
|
|
|
|
_knot_mask8(__mmask8 __M)
|
|
|
|
{
|
|
|
|
return __builtin_ia32_knotqi(__M);
|
|
|
|
}
|
|
|
|
|
|
|
|
static __inline__ __mmask8 __DEFAULT_FN_ATTRS
|
|
|
|
_kand_mask8(__mmask8 __A, __mmask8 __B)
|
|
|
|
{
|
|
|
|
return (__mmask8)__builtin_ia32_kandqi((__mmask8)__A, (__mmask8)__B);
|
|
|
|
}
|
|
|
|
|
|
|
|
static __inline__ __mmask8 __DEFAULT_FN_ATTRS
|
|
|
|
_kandn_mask8(__mmask8 __A, __mmask8 __B)
|
|
|
|
{
|
|
|
|
return (__mmask8)__builtin_ia32_kandnqi((__mmask8)__A, (__mmask8)__B);
|
|
|
|
}
|
|
|
|
|
|
|
|
static __inline__ __mmask8 __DEFAULT_FN_ATTRS
|
|
|
|
_kor_mask8(__mmask8 __A, __mmask8 __B)
|
|
|
|
{
|
|
|
|
return (__mmask8)__builtin_ia32_korqi((__mmask8)__A, (__mmask8)__B);
|
|
|
|
}
|
|
|
|
|
|
|
|
static __inline__ __mmask8 __DEFAULT_FN_ATTRS
|
|
|
|
_kxnor_mask8(__mmask8 __A, __mmask8 __B)
|
|
|
|
{
|
|
|
|
return (__mmask8)__builtin_ia32_kxnorqi((__mmask8)__A, (__mmask8)__B);
|
|
|
|
}
|
|
|
|
|
|
|
|
static __inline__ __mmask8 __DEFAULT_FN_ATTRS
|
|
|
|
_kxor_mask8(__mmask8 __A, __mmask8 __B)
|
|
|
|
{
|
|
|
|
return (__mmask8)__builtin_ia32_kxorqi((__mmask8)__A, (__mmask8)__B);
|
|
|
|
}
|
2015-06-17 15:09:20 +08:00
|
|
|
|
2018-08-28 14:28:25 +08:00
|
|
|
static __inline__ unsigned char __DEFAULT_FN_ATTRS
|
|
|
|
_kortestc_mask8_u8(__mmask8 __A, __mmask8 __B)
|
|
|
|
{
|
|
|
|
return (unsigned char)__builtin_ia32_kortestcqi(__A, __B);
|
|
|
|
}
|
|
|
|
|
|
|
|
static __inline__ unsigned char __DEFAULT_FN_ATTRS
|
|
|
|
_kortestz_mask8_u8(__mmask8 __A, __mmask8 __B)
|
|
|
|
{
|
|
|
|
return (unsigned char)__builtin_ia32_kortestzqi(__A, __B);
|
|
|
|
}
|
|
|
|
|
|
|
|
static __inline__ unsigned char __DEFAULT_FN_ATTRS
|
|
|
|
_kortest_mask8_u8(__mmask8 __A, __mmask8 __B, unsigned char *__C) {
|
|
|
|
*__C = (unsigned char)__builtin_ia32_kortestcqi(__A, __B);
|
|
|
|
return (unsigned char)__builtin_ia32_kortestzqi(__A, __B);
|
|
|
|
}
|
|
|
|
|
2018-09-01 06:29:56 +08:00
|
|
|
static __inline__ unsigned char __DEFAULT_FN_ATTRS
|
|
|
|
_ktestc_mask8_u8(__mmask8 __A, __mmask8 __B)
|
|
|
|
{
|
|
|
|
return (unsigned char)__builtin_ia32_ktestcqi(__A, __B);
|
|
|
|
}
|
|
|
|
|
|
|
|
static __inline__ unsigned char __DEFAULT_FN_ATTRS
|
|
|
|
_ktestz_mask8_u8(__mmask8 __A, __mmask8 __B)
|
|
|
|
{
|
|
|
|
return (unsigned char)__builtin_ia32_ktestzqi(__A, __B);
|
|
|
|
}
|
|
|
|
|
|
|
|
static __inline__ unsigned char __DEFAULT_FN_ATTRS
|
|
|
|
_ktest_mask8_u8(__mmask8 __A, __mmask8 __B, unsigned char *__C) {
|
|
|
|
*__C = (unsigned char)__builtin_ia32_ktestcqi(__A, __B);
|
|
|
|
return (unsigned char)__builtin_ia32_ktestzqi(__A, __B);
|
|
|
|
}
|
|
|
|
|
|
|
|
static __inline__ unsigned char __DEFAULT_FN_ATTRS
|
|
|
|
_ktestc_mask16_u8(__mmask16 __A, __mmask16 __B)
|
|
|
|
{
|
|
|
|
return (unsigned char)__builtin_ia32_ktestchi(__A, __B);
|
|
|
|
}
|
|
|
|
|
|
|
|
static __inline__ unsigned char __DEFAULT_FN_ATTRS
|
|
|
|
_ktestz_mask16_u8(__mmask16 __A, __mmask16 __B)
|
|
|
|
{
|
|
|
|
return (unsigned char)__builtin_ia32_ktestzhi(__A, __B);
|
|
|
|
}
|
|
|
|
|
|
|
|
static __inline__ unsigned char __DEFAULT_FN_ATTRS
|
|
|
|
_ktest_mask16_u8(__mmask16 __A, __mmask16 __B, unsigned char *__C) {
|
|
|
|
*__C = (unsigned char)__builtin_ia32_ktestchi(__A, __B);
|
|
|
|
return (unsigned char)__builtin_ia32_ktestzhi(__A, __B);
|
|
|
|
}
|
|
|
|
|
2018-08-29 06:32:14 +08:00
|
|
|
static __inline__ __mmask8 __DEFAULT_FN_ATTRS
|
|
|
|
_kadd_mask8(__mmask8 __A, __mmask8 __B)
|
|
|
|
{
|
|
|
|
return (__mmask8)__builtin_ia32_kaddqi((__mmask8)__A, (__mmask8)__B);
|
|
|
|
}
|
|
|
|
|
|
|
|
static __inline__ __mmask16 __DEFAULT_FN_ATTRS
|
|
|
|
_kadd_mask16(__mmask16 __A, __mmask16 __B)
|
|
|
|
{
|
|
|
|
return (__mmask16)__builtin_ia32_kaddhi((__mmask16)__A, (__mmask16)__B);
|
|
|
|
}
|
|
|
|
|
2018-09-01 02:22:52 +08:00
|
|
|
#define _kshiftli_mask8(A, I) \
|
|
|
|
(__mmask8)__builtin_ia32_kshiftliqi((__mmask8)(A), (unsigned int)(I))
|
|
|
|
|
|
|
|
#define _kshiftri_mask8(A, I) \
|
|
|
|
(__mmask8)__builtin_ia32_kshiftriqi((__mmask8)(A), (unsigned int)(I))
|
|
|
|
|
[X86] Add k-mask conversion and load/store instrinsics to match gcc and icc.
This adds:
_cvtmask8_u32, _cvtmask16_u32, _cvtmask32_u32, _cvtmask64_u64
_cvtu32_mask8, _cvtu32_mask16, _cvtu32_mask32, _cvtu64_mask64
_load_mask8, _load_mask16, _load_mask32, _load_mask64
_store_mask8, _store_mask16, _store_mask32, _store_mask64
These are currently missing from the Intel Intrinsics Guide webpage.
llvm-svn: 341251
2018-09-01 04:41:06 +08:00
|
|
|
static __inline__ unsigned int __DEFAULT_FN_ATTRS
|
|
|
|
_cvtmask8_u32(__mmask8 __A) {
|
|
|
|
return (unsigned int)__builtin_ia32_kmovb((__mmask8)__A);
|
|
|
|
}
|
|
|
|
|
|
|
|
static __inline__ __mmask8 __DEFAULT_FN_ATTRS
|
|
|
|
_cvtu32_mask8(unsigned int __A) {
|
|
|
|
return (__mmask8)__builtin_ia32_kmovb((__mmask8)__A);
|
|
|
|
}
|
|
|
|
|
|
|
|
static __inline__ __mmask8 __DEFAULT_FN_ATTRS
|
|
|
|
_load_mask8(__mmask8 *__A) {
|
|
|
|
return (__mmask8)__builtin_ia32_kmovb(*(__mmask8 *)__A);
|
|
|
|
}
|
|
|
|
|
|
|
|
static __inline__ void __DEFAULT_FN_ATTRS
|
|
|
|
_store_mask8(__mmask8 *__A, __mmask8 __B) {
|
|
|
|
*(__mmask8 *)__A = __builtin_ia32_kmovb((__mmask8)__B);
|
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512i __DEFAULT_FN_ATTRS512
|
2015-04-30 17:24:29 +08:00
|
|
|
_mm512_mullo_epi64 (__m512i __A, __m512i __B) {
|
2016-06-04 13:43:41 +08:00
|
|
|
return (__m512i) ((__v8du) __A * (__v8du) __B);
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512i __DEFAULT_FN_ATTRS512
|
2016-09-04 03:19:49 +08:00
|
|
|
_mm512_mask_mullo_epi64(__m512i __W, __mmask8 __U, __m512i __A, __m512i __B) {
|
|
|
|
return (__m512i)__builtin_ia32_selectq_512((__mmask8)__U,
|
|
|
|
(__v8di)_mm512_mullo_epi64(__A, __B),
|
|
|
|
(__v8di)__W);
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512i __DEFAULT_FN_ATTRS512
|
2016-09-04 03:19:49 +08:00
|
|
|
_mm512_maskz_mullo_epi64(__mmask8 __U, __m512i __A, __m512i __B) {
|
|
|
|
return (__m512i)__builtin_ia32_selectq_512((__mmask8)__U,
|
|
|
|
(__v8di)_mm512_mullo_epi64(__A, __B),
|
|
|
|
(__v8di)_mm512_setzero_si512());
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512d __DEFAULT_FN_ATTRS512
|
2016-08-31 13:38:58 +08:00
|
|
|
_mm512_xor_pd(__m512d __A, __m512d __B) {
|
|
|
|
return (__m512d)((__v8du)__A ^ (__v8du)__B);
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512d __DEFAULT_FN_ATTRS512
|
2016-08-31 13:38:58 +08:00
|
|
|
_mm512_mask_xor_pd(__m512d __W, __mmask8 __U, __m512d __A, __m512d __B) {
|
|
|
|
return (__m512d)__builtin_ia32_selectpd_512((__mmask8)__U,
|
|
|
|
(__v8df)_mm512_xor_pd(__A, __B),
|
|
|
|
(__v8df)__W);
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512d __DEFAULT_FN_ATTRS512
|
2016-08-31 13:38:58 +08:00
|
|
|
_mm512_maskz_xor_pd(__mmask8 __U, __m512d __A, __m512d __B) {
|
|
|
|
return (__m512d)__builtin_ia32_selectpd_512((__mmask8)__U,
|
|
|
|
(__v8df)_mm512_xor_pd(__A, __B),
|
|
|
|
(__v8df)_mm512_setzero_pd());
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512 __DEFAULT_FN_ATTRS512
|
2015-04-30 17:24:29 +08:00
|
|
|
_mm512_xor_ps (__m512 __A, __m512 __B) {
|
2016-08-31 13:38:58 +08:00
|
|
|
return (__m512)((__v16su)__A ^ (__v16su)__B);
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512 __DEFAULT_FN_ATTRS512
|
2016-08-31 13:38:58 +08:00
|
|
|
_mm512_mask_xor_ps(__m512 __W, __mmask16 __U, __m512 __A, __m512 __B) {
|
|
|
|
return (__m512)__builtin_ia32_selectps_512((__mmask16)__U,
|
|
|
|
(__v16sf)_mm512_xor_ps(__A, __B),
|
|
|
|
(__v16sf)__W);
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512 __DEFAULT_FN_ATTRS512
|
2016-08-31 13:38:58 +08:00
|
|
|
_mm512_maskz_xor_ps(__mmask16 __U, __m512 __A, __m512 __B) {
|
|
|
|
return (__m512)__builtin_ia32_selectps_512((__mmask16)__U,
|
|
|
|
(__v16sf)_mm512_xor_ps(__A, __B),
|
|
|
|
(__v16sf)_mm512_setzero_ps());
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512d __DEFAULT_FN_ATTRS512
|
2016-08-31 13:38:58 +08:00
|
|
|
_mm512_or_pd(__m512d __A, __m512d __B) {
|
|
|
|
return (__m512d)((__v8du)__A | (__v8du)__B);
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512d __DEFAULT_FN_ATTRS512
|
2016-08-31 13:38:58 +08:00
|
|
|
_mm512_mask_or_pd(__m512d __W, __mmask8 __U, __m512d __A, __m512d __B) {
|
|
|
|
return (__m512d)__builtin_ia32_selectpd_512((__mmask8)__U,
|
|
|
|
(__v8df)_mm512_or_pd(__A, __B),
|
|
|
|
(__v8df)__W);
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512d __DEFAULT_FN_ATTRS512
|
2016-08-31 13:38:58 +08:00
|
|
|
_mm512_maskz_or_pd(__mmask8 __U, __m512d __A, __m512d __B) {
|
|
|
|
return (__m512d)__builtin_ia32_selectpd_512((__mmask8)__U,
|
|
|
|
(__v8df)_mm512_or_pd(__A, __B),
|
|
|
|
(__v8df)_mm512_setzero_pd());
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512 __DEFAULT_FN_ATTRS512
|
2016-08-31 13:38:58 +08:00
|
|
|
_mm512_or_ps(__m512 __A, __m512 __B) {
|
|
|
|
return (__m512)((__v16su)__A | (__v16su)__B);
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512 __DEFAULT_FN_ATTRS512
|
2016-08-31 13:38:58 +08:00
|
|
|
_mm512_mask_or_ps(__m512 __W, __mmask16 __U, __m512 __A, __m512 __B) {
|
|
|
|
return (__m512)__builtin_ia32_selectps_512((__mmask16)__U,
|
|
|
|
(__v16sf)_mm512_or_ps(__A, __B),
|
|
|
|
(__v16sf)__W);
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512 __DEFAULT_FN_ATTRS512
|
2016-08-31 13:38:58 +08:00
|
|
|
_mm512_maskz_or_ps(__mmask16 __U, __m512 __A, __m512 __B) {
|
|
|
|
return (__m512)__builtin_ia32_selectps_512((__mmask16)__U,
|
|
|
|
(__v16sf)_mm512_or_ps(__A, __B),
|
|
|
|
(__v16sf)_mm512_setzero_ps());
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512d __DEFAULT_FN_ATTRS512
|
2016-08-31 13:38:58 +08:00
|
|
|
_mm512_and_pd(__m512d __A, __m512d __B) {
|
|
|
|
return (__m512d)((__v8du)__A & (__v8du)__B);
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512d __DEFAULT_FN_ATTRS512
|
2016-08-31 13:38:58 +08:00
|
|
|
_mm512_mask_and_pd(__m512d __W, __mmask8 __U, __m512d __A, __m512d __B) {
|
|
|
|
return (__m512d)__builtin_ia32_selectpd_512((__mmask8)__U,
|
|
|
|
(__v8df)_mm512_and_pd(__A, __B),
|
|
|
|
(__v8df)__W);
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512d __DEFAULT_FN_ATTRS512
|
2016-08-31 13:38:58 +08:00
|
|
|
_mm512_maskz_and_pd(__mmask8 __U, __m512d __A, __m512d __B) {
|
|
|
|
return (__m512d)__builtin_ia32_selectpd_512((__mmask8)__U,
|
|
|
|
(__v8df)_mm512_and_pd(__A, __B),
|
|
|
|
(__v8df)_mm512_setzero_pd());
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512 __DEFAULT_FN_ATTRS512
|
2016-08-31 13:38:58 +08:00
|
|
|
_mm512_and_ps(__m512 __A, __m512 __B) {
|
|
|
|
return (__m512)((__v16su)__A & (__v16su)__B);
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512 __DEFAULT_FN_ATTRS512
|
2016-08-31 13:38:58 +08:00
|
|
|
_mm512_mask_and_ps(__m512 __W, __mmask16 __U, __m512 __A, __m512 __B) {
|
|
|
|
return (__m512)__builtin_ia32_selectps_512((__mmask16)__U,
|
|
|
|
(__v16sf)_mm512_and_ps(__A, __B),
|
|
|
|
(__v16sf)__W);
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512 __DEFAULT_FN_ATTRS512
|
2016-08-31 13:38:58 +08:00
|
|
|
_mm512_maskz_and_ps(__mmask16 __U, __m512 __A, __m512 __B) {
|
|
|
|
return (__m512)__builtin_ia32_selectps_512((__mmask16)__U,
|
|
|
|
(__v16sf)_mm512_and_ps(__A, __B),
|
|
|
|
(__v16sf)_mm512_setzero_ps());
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512d __DEFAULT_FN_ATTRS512
|
2016-08-31 13:38:58 +08:00
|
|
|
_mm512_andnot_pd(__m512d __A, __m512d __B) {
|
2016-08-10 18:34:45 +08:00
|
|
|
return (__m512d)(~(__v8du)__A & (__v8du)__B);
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512d __DEFAULT_FN_ATTRS512
|
2016-08-31 13:38:58 +08:00
|
|
|
_mm512_mask_andnot_pd(__m512d __W, __mmask8 __U, __m512d __A, __m512d __B) {
|
|
|
|
return (__m512d)__builtin_ia32_selectpd_512((__mmask8)__U,
|
|
|
|
(__v8df)_mm512_andnot_pd(__A, __B),
|
|
|
|
(__v8df)__W);
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512d __DEFAULT_FN_ATTRS512
|
2016-08-31 13:38:58 +08:00
|
|
|
_mm512_maskz_andnot_pd(__mmask8 __U, __m512d __A, __m512d __B) {
|
|
|
|
return (__m512d)__builtin_ia32_selectpd_512((__mmask8)__U,
|
|
|
|
(__v8df)_mm512_andnot_pd(__A, __B),
|
|
|
|
(__v8df)_mm512_setzero_pd());
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512 __DEFAULT_FN_ATTRS512
|
2016-08-31 13:38:58 +08:00
|
|
|
_mm512_andnot_ps(__m512 __A, __m512 __B) {
|
2016-08-10 18:34:45 +08:00
|
|
|
return (__m512)(~(__v16su)__A & (__v16su)__B);
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512 __DEFAULT_FN_ATTRS512
|
2016-08-31 13:38:58 +08:00
|
|
|
_mm512_mask_andnot_ps(__m512 __W, __mmask16 __U, __m512 __A, __m512 __B) {
|
|
|
|
return (__m512)__builtin_ia32_selectps_512((__mmask16)__U,
|
|
|
|
(__v16sf)_mm512_andnot_ps(__A, __B),
|
|
|
|
(__v16sf)__W);
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512 __DEFAULT_FN_ATTRS512
|
2016-08-31 13:38:58 +08:00
|
|
|
_mm512_maskz_andnot_ps(__mmask16 __U, __m512 __A, __m512 __B) {
|
|
|
|
return (__m512)__builtin_ia32_selectps_512((__mmask16)__U,
|
|
|
|
(__v16sf)_mm512_andnot_ps(__A, __B),
|
|
|
|
(__v16sf)_mm512_setzero_ps());
|
2015-04-30 17:24:29 +08:00
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512i __DEFAULT_FN_ATTRS512
|
2015-09-17 22:53:37 +08:00
|
|
|
_mm512_cvtpd_epi64 (__m512d __A) {
|
|
|
|
return (__m512i) __builtin_ia32_cvtpd2qq512_mask ((__v8df) __A,
|
|
|
|
(__v8di) _mm512_setzero_si512(),
|
|
|
|
(__mmask8) -1,
|
|
|
|
_MM_FROUND_CUR_DIRECTION);
|
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512i __DEFAULT_FN_ATTRS512
|
2015-09-17 22:53:37 +08:00
|
|
|
_mm512_mask_cvtpd_epi64 (__m512i __W, __mmask8 __U, __m512d __A) {
|
|
|
|
return (__m512i) __builtin_ia32_cvtpd2qq512_mask ((__v8df) __A,
|
|
|
|
(__v8di) __W,
|
|
|
|
(__mmask8) __U,
|
|
|
|
_MM_FROUND_CUR_DIRECTION);
|
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512i __DEFAULT_FN_ATTRS512
|
2015-09-17 22:53:37 +08:00
|
|
|
_mm512_maskz_cvtpd_epi64 (__mmask8 __U, __m512d __A) {
|
|
|
|
return (__m512i) __builtin_ia32_cvtpd2qq512_mask ((__v8df) __A,
|
|
|
|
(__v8di) _mm512_setzero_si512(),
|
|
|
|
(__mmask8) __U,
|
|
|
|
_MM_FROUND_CUR_DIRECTION);
|
|
|
|
}
|
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_cvt_roundpd_epi64(A, R) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m512i)__builtin_ia32_cvtpd2qq512_mask((__v8df)(__m512d)(A), \
|
|
|
|
(__v8di)_mm512_setzero_si512(), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)-1, (int)(R))
|
2015-09-17 22:53:37 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_mask_cvt_roundpd_epi64(W, U, A, R) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m512i)__builtin_ia32_cvtpd2qq512_mask((__v8df)(__m512d)(A), \
|
|
|
|
(__v8di)(__m512i)(W), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)(U), (int)(R))
|
2015-09-17 22:53:37 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_maskz_cvt_roundpd_epi64(U, A, R) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m512i)__builtin_ia32_cvtpd2qq512_mask((__v8df)(__m512d)(A), \
|
|
|
|
(__v8di)_mm512_setzero_si512(), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)(U), (int)(R))
|
2015-09-17 22:53:37 +08:00
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512i __DEFAULT_FN_ATTRS512
|
2015-09-17 22:53:37 +08:00
|
|
|
_mm512_cvtpd_epu64 (__m512d __A) {
|
|
|
|
return (__m512i) __builtin_ia32_cvtpd2uqq512_mask ((__v8df) __A,
|
|
|
|
(__v8di) _mm512_setzero_si512(),
|
|
|
|
(__mmask8) -1,
|
|
|
|
_MM_FROUND_CUR_DIRECTION);
|
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512i __DEFAULT_FN_ATTRS512
|
2015-09-17 22:53:37 +08:00
|
|
|
_mm512_mask_cvtpd_epu64 (__m512i __W, __mmask8 __U, __m512d __A) {
|
|
|
|
return (__m512i) __builtin_ia32_cvtpd2uqq512_mask ((__v8df) __A,
|
|
|
|
(__v8di) __W,
|
|
|
|
(__mmask8) __U,
|
|
|
|
_MM_FROUND_CUR_DIRECTION);
|
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512i __DEFAULT_FN_ATTRS512
|
2015-09-17 22:53:37 +08:00
|
|
|
_mm512_maskz_cvtpd_epu64 (__mmask8 __U, __m512d __A) {
|
|
|
|
return (__m512i) __builtin_ia32_cvtpd2uqq512_mask ((__v8df) __A,
|
|
|
|
(__v8di) _mm512_setzero_si512(),
|
|
|
|
(__mmask8) __U,
|
|
|
|
_MM_FROUND_CUR_DIRECTION);
|
|
|
|
}
|
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_cvt_roundpd_epu64(A, R) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m512i)__builtin_ia32_cvtpd2uqq512_mask((__v8df)(__m512d)(A), \
|
|
|
|
(__v8di)_mm512_setzero_si512(), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)-1, (int)(R))
|
2015-09-17 22:53:37 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_mask_cvt_roundpd_epu64(W, U, A, R) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m512i)__builtin_ia32_cvtpd2uqq512_mask((__v8df)(__m512d)(A), \
|
|
|
|
(__v8di)(__m512i)(W), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)(U), (int)(R))
|
2015-09-17 22:53:37 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_maskz_cvt_roundpd_epu64(U, A, R) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m512i)__builtin_ia32_cvtpd2uqq512_mask((__v8df)(__m512d)(A), \
|
|
|
|
(__v8di)_mm512_setzero_si512(), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)(U), (int)(R))
|
2015-09-17 22:53:37 +08:00
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512i __DEFAULT_FN_ATTRS512
|
2015-09-17 22:53:37 +08:00
|
|
|
_mm512_cvtps_epi64 (__m256 __A) {
|
|
|
|
return (__m512i) __builtin_ia32_cvtps2qq512_mask ((__v8sf) __A,
|
|
|
|
(__v8di) _mm512_setzero_si512(),
|
|
|
|
(__mmask8) -1,
|
|
|
|
_MM_FROUND_CUR_DIRECTION);
|
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512i __DEFAULT_FN_ATTRS512
|
2015-09-17 22:53:37 +08:00
|
|
|
_mm512_mask_cvtps_epi64 (__m512i __W, __mmask8 __U, __m256 __A) {
|
|
|
|
return (__m512i) __builtin_ia32_cvtps2qq512_mask ((__v8sf) __A,
|
|
|
|
(__v8di) __W,
|
|
|
|
(__mmask8) __U,
|
|
|
|
_MM_FROUND_CUR_DIRECTION);
|
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512i __DEFAULT_FN_ATTRS512
|
2015-09-17 22:53:37 +08:00
|
|
|
_mm512_maskz_cvtps_epi64 (__mmask8 __U, __m256 __A) {
|
|
|
|
return (__m512i) __builtin_ia32_cvtps2qq512_mask ((__v8sf) __A,
|
|
|
|
(__v8di) _mm512_setzero_si512(),
|
|
|
|
(__mmask8) __U,
|
|
|
|
_MM_FROUND_CUR_DIRECTION);
|
|
|
|
}
|
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_cvt_roundps_epi64(A, R) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m512i)__builtin_ia32_cvtps2qq512_mask((__v8sf)(__m256)(A), \
|
|
|
|
(__v8di)_mm512_setzero_si512(), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)-1, (int)(R))
|
2015-09-17 22:53:37 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_mask_cvt_roundps_epi64(W, U, A, R) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m512i)__builtin_ia32_cvtps2qq512_mask((__v8sf)(__m256)(A), \
|
|
|
|
(__v8di)(__m512i)(W), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)(U), (int)(R))
|
2015-09-17 22:53:37 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_maskz_cvt_roundps_epi64(U, A, R) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m512i)__builtin_ia32_cvtps2qq512_mask((__v8sf)(__m256)(A), \
|
|
|
|
(__v8di)_mm512_setzero_si512(), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)(U), (int)(R))
|
2015-09-17 22:53:37 +08:00
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512i __DEFAULT_FN_ATTRS512
|
2015-09-17 22:53:37 +08:00
|
|
|
_mm512_cvtps_epu64 (__m256 __A) {
|
|
|
|
return (__m512i) __builtin_ia32_cvtps2uqq512_mask ((__v8sf) __A,
|
|
|
|
(__v8di) _mm512_setzero_si512(),
|
|
|
|
(__mmask8) -1,
|
|
|
|
_MM_FROUND_CUR_DIRECTION);
|
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512i __DEFAULT_FN_ATTRS512
|
2015-09-17 22:53:37 +08:00
|
|
|
_mm512_mask_cvtps_epu64 (__m512i __W, __mmask8 __U, __m256 __A) {
|
|
|
|
return (__m512i) __builtin_ia32_cvtps2uqq512_mask ((__v8sf) __A,
|
|
|
|
(__v8di) __W,
|
|
|
|
(__mmask8) __U,
|
|
|
|
_MM_FROUND_CUR_DIRECTION);
|
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512i __DEFAULT_FN_ATTRS512
|
2015-09-17 22:53:37 +08:00
|
|
|
_mm512_maskz_cvtps_epu64 (__mmask8 __U, __m256 __A) {
|
|
|
|
return (__m512i) __builtin_ia32_cvtps2uqq512_mask ((__v8sf) __A,
|
|
|
|
(__v8di) _mm512_setzero_si512(),
|
|
|
|
(__mmask8) __U,
|
|
|
|
_MM_FROUND_CUR_DIRECTION);
|
|
|
|
}
|
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_cvt_roundps_epu64(A, R) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m512i)__builtin_ia32_cvtps2uqq512_mask((__v8sf)(__m256)(A), \
|
|
|
|
(__v8di)_mm512_setzero_si512(), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)-1, (int)(R))
|
2015-09-17 22:53:37 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_mask_cvt_roundps_epu64(W, U, A, R) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m512i)__builtin_ia32_cvtps2uqq512_mask((__v8sf)(__m256)(A), \
|
|
|
|
(__v8di)(__m512i)(W), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)(U), (int)(R))
|
2015-09-17 22:53:37 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_maskz_cvt_roundps_epu64(U, A, R) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m512i)__builtin_ia32_cvtps2uqq512_mask((__v8sf)(__m256)(A), \
|
|
|
|
(__v8di)_mm512_setzero_si512(), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)(U), (int)(R))
|
2015-09-17 22:53:37 +08:00
|
|
|
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512d __DEFAULT_FN_ATTRS512
|
2015-09-17 22:53:37 +08:00
|
|
|
_mm512_cvtepi64_pd (__m512i __A) {
|
2018-05-22 04:19:17 +08:00
|
|
|
return (__m512d)__builtin_convertvector((__v8di)__A, __v8df);
|
2015-09-17 22:53:37 +08:00
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512d __DEFAULT_FN_ATTRS512
|
2015-09-17 22:53:37 +08:00
|
|
|
_mm512_mask_cvtepi64_pd (__m512d __W, __mmask8 __U, __m512i __A) {
|
2018-05-22 04:19:17 +08:00
|
|
|
return (__m512d)__builtin_ia32_selectpd_512((__mmask8)__U,
|
|
|
|
(__v8df)_mm512_cvtepi64_pd(__A),
|
|
|
|
(__v8df)__W);
|
2015-09-17 22:53:37 +08:00
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512d __DEFAULT_FN_ATTRS512
|
2015-09-17 22:53:37 +08:00
|
|
|
_mm512_maskz_cvtepi64_pd (__mmask8 __U, __m512i __A) {
|
2018-05-22 04:19:17 +08:00
|
|
|
return (__m512d)__builtin_ia32_selectpd_512((__mmask8)__U,
|
|
|
|
(__v8df)_mm512_cvtepi64_pd(__A),
|
|
|
|
(__v8df)_mm512_setzero_pd());
|
2015-09-17 22:53:37 +08:00
|
|
|
}
|
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_cvt_roundepi64_pd(A, R) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m512d)__builtin_ia32_cvtqq2pd512_mask((__v8di)(__m512i)(A), \
|
|
|
|
(__v8df)_mm512_setzero_pd(), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)-1, (int)(R))
|
2015-09-17 22:53:37 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_mask_cvt_roundepi64_pd(W, U, A, R) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m512d)__builtin_ia32_cvtqq2pd512_mask((__v8di)(__m512i)(A), \
|
|
|
|
(__v8df)(__m512d)(W), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)(U), (int)(R))
|
2015-09-17 22:53:37 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_maskz_cvt_roundepi64_pd(U, A, R) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m512d)__builtin_ia32_cvtqq2pd512_mask((__v8di)(__m512i)(A), \
|
|
|
|
(__v8df)_mm512_setzero_pd(), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)(U), (int)(R))
|
2015-09-17 22:53:37 +08:00
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m256 __DEFAULT_FN_ATTRS512
|
2015-09-17 22:53:37 +08:00
|
|
|
_mm512_cvtepi64_ps (__m512i __A) {
|
|
|
|
return (__m256) __builtin_ia32_cvtqq2ps512_mask ((__v8di) __A,
|
|
|
|
(__v8sf) _mm256_setzero_ps(),
|
|
|
|
(__mmask8) -1,
|
|
|
|
_MM_FROUND_CUR_DIRECTION);
|
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m256 __DEFAULT_FN_ATTRS512
|
2015-09-17 22:53:37 +08:00
|
|
|
_mm512_mask_cvtepi64_ps (__m256 __W, __mmask8 __U, __m512i __A) {
|
|
|
|
return (__m256) __builtin_ia32_cvtqq2ps512_mask ((__v8di) __A,
|
|
|
|
(__v8sf) __W,
|
|
|
|
(__mmask8) __U,
|
|
|
|
_MM_FROUND_CUR_DIRECTION);
|
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m256 __DEFAULT_FN_ATTRS512
|
2015-09-17 22:53:37 +08:00
|
|
|
_mm512_maskz_cvtepi64_ps (__mmask8 __U, __m512i __A) {
|
|
|
|
return (__m256) __builtin_ia32_cvtqq2ps512_mask ((__v8di) __A,
|
|
|
|
(__v8sf) _mm256_setzero_ps(),
|
|
|
|
(__mmask8) __U,
|
|
|
|
_MM_FROUND_CUR_DIRECTION);
|
|
|
|
}
|
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_cvt_roundepi64_ps(A, R) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m256)__builtin_ia32_cvtqq2ps512_mask((__v8di)(__m512i)(A), \
|
|
|
|
(__v8sf)_mm256_setzero_ps(), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)-1, (int)(R))
|
2015-09-17 22:53:37 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_mask_cvt_roundepi64_ps(W, U, A, R) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m256)__builtin_ia32_cvtqq2ps512_mask((__v8di)(__m512i)(A), \
|
|
|
|
(__v8sf)(__m256)(W), (__mmask8)(U), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(int)(R))
|
2015-09-17 22:53:37 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_maskz_cvt_roundepi64_ps(U, A, R) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m256)__builtin_ia32_cvtqq2ps512_mask((__v8di)(__m512i)(A), \
|
|
|
|
(__v8sf)_mm256_setzero_ps(), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)(U), (int)(R))
|
2015-09-17 22:53:37 +08:00
|
|
|
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512i __DEFAULT_FN_ATTRS512
|
2015-09-17 22:53:37 +08:00
|
|
|
_mm512_cvttpd_epi64 (__m512d __A) {
|
|
|
|
return (__m512i) __builtin_ia32_cvttpd2qq512_mask ((__v8df) __A,
|
|
|
|
(__v8di) _mm512_setzero_si512(),
|
|
|
|
(__mmask8) -1,
|
|
|
|
_MM_FROUND_CUR_DIRECTION);
|
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512i __DEFAULT_FN_ATTRS512
|
2015-09-17 22:53:37 +08:00
|
|
|
_mm512_mask_cvttpd_epi64 (__m512i __W, __mmask8 __U, __m512d __A) {
|
|
|
|
return (__m512i) __builtin_ia32_cvttpd2qq512_mask ((__v8df) __A,
|
|
|
|
(__v8di) __W,
|
|
|
|
(__mmask8) __U,
|
|
|
|
_MM_FROUND_CUR_DIRECTION);
|
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512i __DEFAULT_FN_ATTRS512
|
2015-09-17 22:53:37 +08:00
|
|
|
_mm512_maskz_cvttpd_epi64 (__mmask8 __U, __m512d __A) {
|
|
|
|
return (__m512i) __builtin_ia32_cvttpd2qq512_mask ((__v8df) __A,
|
|
|
|
(__v8di) _mm512_setzero_si512(),
|
|
|
|
(__mmask8) __U,
|
|
|
|
_MM_FROUND_CUR_DIRECTION);
|
|
|
|
}
|
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_cvtt_roundpd_epi64(A, R) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m512i)__builtin_ia32_cvttpd2qq512_mask((__v8df)(__m512d)(A), \
|
|
|
|
(__v8di)_mm512_setzero_si512(), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)-1, (int)(R))
|
2015-09-17 22:53:37 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_mask_cvtt_roundpd_epi64(W, U, A, R) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m512i)__builtin_ia32_cvttpd2qq512_mask((__v8df)(__m512d)(A), \
|
|
|
|
(__v8di)(__m512i)(W), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)(U), (int)(R))
|
2015-09-17 22:53:37 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_maskz_cvtt_roundpd_epi64(U, A, R) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m512i)__builtin_ia32_cvttpd2qq512_mask((__v8df)(__m512d)(A), \
|
|
|
|
(__v8di)_mm512_setzero_si512(), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)(U), (int)(R))
|
2015-09-17 22:53:37 +08:00
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512i __DEFAULT_FN_ATTRS512
|
2015-09-17 22:53:37 +08:00
|
|
|
_mm512_cvttpd_epu64 (__m512d __A) {
|
|
|
|
return (__m512i) __builtin_ia32_cvttpd2uqq512_mask ((__v8df) __A,
|
|
|
|
(__v8di) _mm512_setzero_si512(),
|
|
|
|
(__mmask8) -1,
|
|
|
|
_MM_FROUND_CUR_DIRECTION);
|
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512i __DEFAULT_FN_ATTRS512
|
2015-09-17 22:53:37 +08:00
|
|
|
_mm512_mask_cvttpd_epu64 (__m512i __W, __mmask8 __U, __m512d __A) {
|
|
|
|
return (__m512i) __builtin_ia32_cvttpd2uqq512_mask ((__v8df) __A,
|
|
|
|
(__v8di) __W,
|
|
|
|
(__mmask8) __U,
|
|
|
|
_MM_FROUND_CUR_DIRECTION);
|
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512i __DEFAULT_FN_ATTRS512
|
2015-09-17 22:53:37 +08:00
|
|
|
_mm512_maskz_cvttpd_epu64 (__mmask8 __U, __m512d __A) {
|
|
|
|
return (__m512i) __builtin_ia32_cvttpd2uqq512_mask ((__v8df) __A,
|
|
|
|
(__v8di) _mm512_setzero_si512(),
|
|
|
|
(__mmask8) __U,
|
|
|
|
_MM_FROUND_CUR_DIRECTION);
|
|
|
|
}
|
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_cvtt_roundpd_epu64(A, R) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m512i)__builtin_ia32_cvttpd2uqq512_mask((__v8df)(__m512d)(A), \
|
|
|
|
(__v8di)_mm512_setzero_si512(), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)-1, (int)(R))
|
2015-09-17 22:53:37 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_mask_cvtt_roundpd_epu64(W, U, A, R) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m512i)__builtin_ia32_cvttpd2uqq512_mask((__v8df)(__m512d)(A), \
|
|
|
|
(__v8di)(__m512i)(W), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)(U), (int)(R))
|
2015-09-17 22:53:37 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_maskz_cvtt_roundpd_epu64(U, A, R) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m512i)__builtin_ia32_cvttpd2uqq512_mask((__v8df)(__m512d)(A), \
|
|
|
|
(__v8di)_mm512_setzero_si512(), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)(U), (int)(R))
|
2015-09-17 22:53:37 +08:00
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512i __DEFAULT_FN_ATTRS512
|
2015-09-17 22:53:37 +08:00
|
|
|
_mm512_cvttps_epi64 (__m256 __A) {
|
|
|
|
return (__m512i) __builtin_ia32_cvttps2qq512_mask ((__v8sf) __A,
|
|
|
|
(__v8di) _mm512_setzero_si512(),
|
|
|
|
(__mmask8) -1,
|
|
|
|
_MM_FROUND_CUR_DIRECTION);
|
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512i __DEFAULT_FN_ATTRS512
|
2015-09-17 22:53:37 +08:00
|
|
|
_mm512_mask_cvttps_epi64 (__m512i __W, __mmask8 __U, __m256 __A) {
|
|
|
|
return (__m512i) __builtin_ia32_cvttps2qq512_mask ((__v8sf) __A,
|
|
|
|
(__v8di) __W,
|
|
|
|
(__mmask8) __U,
|
|
|
|
_MM_FROUND_CUR_DIRECTION);
|
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512i __DEFAULT_FN_ATTRS512
|
2015-09-17 22:53:37 +08:00
|
|
|
_mm512_maskz_cvttps_epi64 (__mmask8 __U, __m256 __A) {
|
|
|
|
return (__m512i) __builtin_ia32_cvttps2qq512_mask ((__v8sf) __A,
|
|
|
|
(__v8di) _mm512_setzero_si512(),
|
|
|
|
(__mmask8) __U,
|
|
|
|
_MM_FROUND_CUR_DIRECTION);
|
|
|
|
}
|
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_cvtt_roundps_epi64(A, R) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m512i)__builtin_ia32_cvttps2qq512_mask((__v8sf)(__m256)(A), \
|
|
|
|
(__v8di)_mm512_setzero_si512(), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)-1, (int)(R))
|
2015-09-17 22:53:37 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_mask_cvtt_roundps_epi64(W, U, A, R) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m512i)__builtin_ia32_cvttps2qq512_mask((__v8sf)(__m256)(A), \
|
|
|
|
(__v8di)(__m512i)(W), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)(U), (int)(R))
|
2015-09-17 22:53:37 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_maskz_cvtt_roundps_epi64(U, A, R) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m512i)__builtin_ia32_cvttps2qq512_mask((__v8sf)(__m256)(A), \
|
|
|
|
(__v8di)_mm512_setzero_si512(), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)(U), (int)(R))
|
2015-09-17 22:53:37 +08:00
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512i __DEFAULT_FN_ATTRS512
|
2015-09-17 22:53:37 +08:00
|
|
|
_mm512_cvttps_epu64 (__m256 __A) {
|
|
|
|
return (__m512i) __builtin_ia32_cvttps2uqq512_mask ((__v8sf) __A,
|
|
|
|
(__v8di) _mm512_setzero_si512(),
|
|
|
|
(__mmask8) -1,
|
|
|
|
_MM_FROUND_CUR_DIRECTION);
|
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512i __DEFAULT_FN_ATTRS512
|
2015-09-17 22:53:37 +08:00
|
|
|
_mm512_mask_cvttps_epu64 (__m512i __W, __mmask8 __U, __m256 __A) {
|
|
|
|
return (__m512i) __builtin_ia32_cvttps2uqq512_mask ((__v8sf) __A,
|
|
|
|
(__v8di) __W,
|
|
|
|
(__mmask8) __U,
|
|
|
|
_MM_FROUND_CUR_DIRECTION);
|
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512i __DEFAULT_FN_ATTRS512
|
2015-09-17 22:53:37 +08:00
|
|
|
_mm512_maskz_cvttps_epu64 (__mmask8 __U, __m256 __A) {
|
|
|
|
return (__m512i) __builtin_ia32_cvttps2uqq512_mask ((__v8sf) __A,
|
|
|
|
(__v8di) _mm512_setzero_si512(),
|
|
|
|
(__mmask8) __U,
|
|
|
|
_MM_FROUND_CUR_DIRECTION);
|
|
|
|
}
|
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_cvtt_roundps_epu64(A, R) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m512i)__builtin_ia32_cvttps2uqq512_mask((__v8sf)(__m256)(A), \
|
|
|
|
(__v8di)_mm512_setzero_si512(), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)-1, (int)(R))
|
2015-09-17 22:53:37 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_mask_cvtt_roundps_epu64(W, U, A, R) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m512i)__builtin_ia32_cvttps2uqq512_mask((__v8sf)(__m256)(A), \
|
|
|
|
(__v8di)(__m512i)(W), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)(U), (int)(R))
|
2015-09-17 22:53:37 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_maskz_cvtt_roundps_epu64(U, A, R) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m512i)__builtin_ia32_cvttps2uqq512_mask((__v8sf)(__m256)(A), \
|
|
|
|
(__v8di)_mm512_setzero_si512(), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)(U), (int)(R))
|
2015-09-17 22:53:37 +08:00
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512d __DEFAULT_FN_ATTRS512
|
2015-09-17 22:53:37 +08:00
|
|
|
_mm512_cvtepu64_pd (__m512i __A) {
|
2018-05-22 04:19:17 +08:00
|
|
|
return (__m512d)__builtin_convertvector((__v8du)__A, __v8df);
|
2015-09-17 22:53:37 +08:00
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512d __DEFAULT_FN_ATTRS512
|
2015-09-17 22:53:37 +08:00
|
|
|
_mm512_mask_cvtepu64_pd (__m512d __W, __mmask8 __U, __m512i __A) {
|
2018-05-22 04:19:17 +08:00
|
|
|
return (__m512d)__builtin_ia32_selectpd_512((__mmask8)__U,
|
|
|
|
(__v8df)_mm512_cvtepu64_pd(__A),
|
|
|
|
(__v8df)__W);
|
2015-09-17 22:53:37 +08:00
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512d __DEFAULT_FN_ATTRS512
|
2015-09-17 22:53:37 +08:00
|
|
|
_mm512_maskz_cvtepu64_pd (__mmask8 __U, __m512i __A) {
|
2018-05-22 04:19:17 +08:00
|
|
|
return (__m512d)__builtin_ia32_selectpd_512((__mmask8)__U,
|
|
|
|
(__v8df)_mm512_cvtepu64_pd(__A),
|
|
|
|
(__v8df)_mm512_setzero_pd());
|
2015-09-17 22:53:37 +08:00
|
|
|
}
|
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_cvt_roundepu64_pd(A, R) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m512d)__builtin_ia32_cvtuqq2pd512_mask((__v8di)(__m512i)(A), \
|
|
|
|
(__v8df)_mm512_setzero_pd(), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)-1, (int)(R))
|
2015-09-17 22:53:37 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_mask_cvt_roundepu64_pd(W, U, A, R) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m512d)__builtin_ia32_cvtuqq2pd512_mask((__v8di)(__m512i)(A), \
|
|
|
|
(__v8df)(__m512d)(W), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)(U), (int)(R))
|
2015-09-17 22:53:37 +08:00
|
|
|
|
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_maskz_cvt_roundepu64_pd(U, A, R) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m512d)__builtin_ia32_cvtuqq2pd512_mask((__v8di)(__m512i)(A), \
|
|
|
|
(__v8df)_mm512_setzero_pd(), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)(U), (int)(R))
|
2015-09-17 22:53:37 +08:00
|
|
|
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m256 __DEFAULT_FN_ATTRS512
|
2015-09-17 22:53:37 +08:00
|
|
|
_mm512_cvtepu64_ps (__m512i __A) {
|
|
|
|
return (__m256) __builtin_ia32_cvtuqq2ps512_mask ((__v8di) __A,
|
|
|
|
(__v8sf) _mm256_setzero_ps(),
|
|
|
|
(__mmask8) -1,
|
|
|
|
_MM_FROUND_CUR_DIRECTION);
|
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m256 __DEFAULT_FN_ATTRS512
|
2015-09-17 22:53:37 +08:00
|
|
|
_mm512_mask_cvtepu64_ps (__m256 __W, __mmask8 __U, __m512i __A) {
|
|
|
|
return (__m256) __builtin_ia32_cvtuqq2ps512_mask ((__v8di) __A,
|
|
|
|
(__v8sf) __W,
|
|
|
|
(__mmask8) __U,
|
|
|
|
_MM_FROUND_CUR_DIRECTION);
|
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m256 __DEFAULT_FN_ATTRS512
|
2015-09-17 22:53:37 +08:00
|
|
|
_mm512_maskz_cvtepu64_ps (__mmask8 __U, __m512i __A) {
|
|
|
|
return (__m256) __builtin_ia32_cvtuqq2ps512_mask ((__v8di) __A,
|
|
|
|
(__v8sf) _mm256_setzero_ps(),
|
|
|
|
(__mmask8) __U,
|
|
|
|
_MM_FROUND_CUR_DIRECTION);
|
|
|
|
}
|
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_cvt_roundepu64_ps(A, R) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m256)__builtin_ia32_cvtuqq2ps512_mask((__v8di)(__m512i)(A), \
|
|
|
|
(__v8sf)_mm256_setzero_ps(), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)-1, (int)(R))
|
2016-05-17 12:41:36 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_mask_cvt_roundepu64_ps(W, U, A, R) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m256)__builtin_ia32_cvtuqq2ps512_mask((__v8di)(__m512i)(A), \
|
|
|
|
(__v8sf)(__m256)(W), (__mmask8)(U), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(int)(R))
|
2016-05-17 12:41:36 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_maskz_cvt_roundepu64_ps(U, A, R) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m256)__builtin_ia32_cvtuqq2ps512_mask((__v8di)(__m512i)(A), \
|
|
|
|
(__v8sf)_mm256_setzero_ps(), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)(U), (int)(R))
|
2016-05-17 12:41:36 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_range_pd(A, B, C) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m512d)__builtin_ia32_rangepd512_mask((__v8df)(__m512d)(A), \
|
|
|
|
(__v8df)(__m512d)(B), (int)(C), \
|
|
|
|
(__v8df)_mm512_setzero_pd(), \
|
|
|
|
(__mmask8)-1, \
|
2018-05-31 08:51:20 +08:00
|
|
|
_MM_FROUND_CUR_DIRECTION)
|
2016-05-17 12:41:36 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_mask_range_pd(W, U, A, B, C) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m512d)__builtin_ia32_rangepd512_mask((__v8df)(__m512d)(A), \
|
|
|
|
(__v8df)(__m512d)(B), (int)(C), \
|
|
|
|
(__v8df)(__m512d)(W), (__mmask8)(U), \
|
2018-05-31 08:51:20 +08:00
|
|
|
_MM_FROUND_CUR_DIRECTION)
|
2016-05-17 12:41:36 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_maskz_range_pd(U, A, B, C) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m512d)__builtin_ia32_rangepd512_mask((__v8df)(__m512d)(A), \
|
|
|
|
(__v8df)(__m512d)(B), (int)(C), \
|
|
|
|
(__v8df)_mm512_setzero_pd(), \
|
|
|
|
(__mmask8)(U), \
|
2018-05-31 08:51:20 +08:00
|
|
|
_MM_FROUND_CUR_DIRECTION)
|
2016-05-17 12:41:36 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_range_round_pd(A, B, C, R) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m512d)__builtin_ia32_rangepd512_mask((__v8df)(__m512d)(A), \
|
|
|
|
(__v8df)(__m512d)(B), (int)(C), \
|
|
|
|
(__v8df)_mm512_setzero_pd(), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)-1, (int)(R))
|
2016-05-17 12:41:36 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_mask_range_round_pd(W, U, A, B, C, R) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m512d)__builtin_ia32_rangepd512_mask((__v8df)(__m512d)(A), \
|
|
|
|
(__v8df)(__m512d)(B), (int)(C), \
|
|
|
|
(__v8df)(__m512d)(W), (__mmask8)(U), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(int)(R))
|
2016-05-17 12:41:36 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_maskz_range_round_pd(U, A, B, C, R) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m512d)__builtin_ia32_rangepd512_mask((__v8df)(__m512d)(A), \
|
|
|
|
(__v8df)(__m512d)(B), (int)(C), \
|
|
|
|
(__v8df)_mm512_setzero_pd(), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)(U), (int)(R))
|
2016-05-17 12:41:36 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_range_ps(A, B, C) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m512)__builtin_ia32_rangeps512_mask((__v16sf)(__m512)(A), \
|
|
|
|
(__v16sf)(__m512)(B), (int)(C), \
|
|
|
|
(__v16sf)_mm512_setzero_ps(), \
|
|
|
|
(__mmask16)-1, \
|
2018-05-31 08:51:20 +08:00
|
|
|
_MM_FROUND_CUR_DIRECTION)
|
2016-05-17 12:41:36 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_mask_range_ps(W, U, A, B, C) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m512)__builtin_ia32_rangeps512_mask((__v16sf)(__m512)(A), \
|
|
|
|
(__v16sf)(__m512)(B), (int)(C), \
|
|
|
|
(__v16sf)(__m512)(W), (__mmask16)(U), \
|
2018-05-31 08:51:20 +08:00
|
|
|
_MM_FROUND_CUR_DIRECTION)
|
2016-05-17 12:41:36 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_maskz_range_ps(U, A, B, C) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m512)__builtin_ia32_rangeps512_mask((__v16sf)(__m512)(A), \
|
|
|
|
(__v16sf)(__m512)(B), (int)(C), \
|
|
|
|
(__v16sf)_mm512_setzero_ps(), \
|
|
|
|
(__mmask16)(U), \
|
2018-05-31 08:51:20 +08:00
|
|
|
_MM_FROUND_CUR_DIRECTION)
|
2016-05-17 12:41:36 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_range_round_ps(A, B, C, R) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m512)__builtin_ia32_rangeps512_mask((__v16sf)(__m512)(A), \
|
|
|
|
(__v16sf)(__m512)(B), (int)(C), \
|
|
|
|
(__v16sf)_mm512_setzero_ps(), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask16)-1, (int)(R))
|
2016-05-17 12:41:36 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_mask_range_round_ps(W, U, A, B, C, R) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m512)__builtin_ia32_rangeps512_mask((__v16sf)(__m512)(A), \
|
|
|
|
(__v16sf)(__m512)(B), (int)(C), \
|
|
|
|
(__v16sf)(__m512)(W), (__mmask16)(U), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(int)(R))
|
2016-05-17 12:41:36 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_maskz_range_round_ps(U, A, B, C, R) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m512)__builtin_ia32_rangeps512_mask((__v16sf)(__m512)(A), \
|
|
|
|
(__v16sf)(__m512)(B), (int)(C), \
|
|
|
|
(__v16sf)_mm512_setzero_ps(), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask16)(U), (int)(R))
|
2016-05-17 12:41:36 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm_range_round_ss(A, B, C, R) \
|
2016-06-08 16:19:27 +08:00
|
|
|
(__m128)__builtin_ia32_rangess128_round_mask((__v4sf)(__m128)(A), \
|
|
|
|
(__v4sf)(__m128)(B), \
|
|
|
|
(__v4sf)_mm_setzero_ps(), \
|
|
|
|
(__mmask8) -1, (int)(C),\
|
2018-05-31 08:51:20 +08:00
|
|
|
(int)(R))
|
2016-06-08 16:19:27 +08:00
|
|
|
|
2016-06-30 16:05:46 +08:00
|
|
|
#define _mm_range_ss(A ,B , C) _mm_range_round_ss(A, B, C ,_MM_FROUND_CUR_DIRECTION)
|
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm_mask_range_round_ss(W, U, A, B, C, R) \
|
2016-06-08 16:19:27 +08:00
|
|
|
(__m128)__builtin_ia32_rangess128_round_mask((__v4sf)(__m128)(A), \
|
|
|
|
(__v4sf)(__m128)(B), \
|
|
|
|
(__v4sf)(__m128)(W),\
|
|
|
|
(__mmask8)(U), (int)(C),\
|
2018-05-31 08:51:20 +08:00
|
|
|
(int)(R))
|
2016-06-08 16:19:27 +08:00
|
|
|
|
2016-06-30 16:05:46 +08:00
|
|
|
#define _mm_mask_range_ss(W , U, A, B, C) _mm_mask_range_round_ss(W, U, A, B, C , _MM_FROUND_CUR_DIRECTION)
|
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm_maskz_range_round_ss(U, A, B, C, R) \
|
2016-06-08 16:19:27 +08:00
|
|
|
(__m128)__builtin_ia32_rangess128_round_mask((__v4sf)(__m128)(A), \
|
|
|
|
(__v4sf)(__m128)(B), \
|
|
|
|
(__v4sf)_mm_setzero_ps(), \
|
|
|
|
(__mmask8)(U), (int)(C),\
|
2018-05-31 08:51:20 +08:00
|
|
|
(int)(R))
|
2016-06-08 16:19:27 +08:00
|
|
|
|
2016-06-30 16:05:46 +08:00
|
|
|
#define _mm_maskz_range_ss(U, A ,B , C) _mm_maskz_range_round_ss(U, A, B, C ,_MM_FROUND_CUR_DIRECTION)
|
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm_range_round_sd(A, B, C, R) \
|
2016-06-08 16:19:27 +08:00
|
|
|
(__m128d)__builtin_ia32_rangesd128_round_mask((__v2df)(__m128d)(A), \
|
|
|
|
(__v2df)(__m128d)(B), \
|
|
|
|
(__v2df)_mm_setzero_pd(), \
|
|
|
|
(__mmask8) -1, (int)(C),\
|
2018-05-31 08:51:20 +08:00
|
|
|
(int)(R))
|
2016-06-08 16:19:27 +08:00
|
|
|
|
2016-06-30 16:05:46 +08:00
|
|
|
#define _mm_range_sd(A ,B , C) _mm_range_round_sd(A, B, C ,_MM_FROUND_CUR_DIRECTION)
|
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm_mask_range_round_sd(W, U, A, B, C, R) \
|
2016-06-08 16:19:27 +08:00
|
|
|
(__m128d)__builtin_ia32_rangesd128_round_mask((__v2df)(__m128d)(A), \
|
|
|
|
(__v2df)(__m128d)(B), \
|
|
|
|
(__v2df)(__m128d)(W),\
|
|
|
|
(__mmask8)(U), (int)(C),\
|
2018-05-31 08:51:20 +08:00
|
|
|
(int)(R))
|
2016-06-08 16:19:27 +08:00
|
|
|
|
2016-06-30 16:05:46 +08:00
|
|
|
#define _mm_mask_range_sd(W, U, A, B, C) _mm_mask_range_round_sd(W, U, A, B, C ,_MM_FROUND_CUR_DIRECTION)
|
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm_maskz_range_round_sd(U, A, B, C, R) \
|
2016-06-08 16:19:27 +08:00
|
|
|
(__m128d)__builtin_ia32_rangesd128_round_mask((__v2df)(__m128d)(A), \
|
|
|
|
(__v2df)(__m128d)(B), \
|
|
|
|
(__v2df)_mm_setzero_pd(), \
|
|
|
|
(__mmask8)(U), (int)(C),\
|
2018-05-31 08:51:20 +08:00
|
|
|
(int)(R))
|
2016-06-08 16:19:27 +08:00
|
|
|
|
2016-06-30 16:05:46 +08:00
|
|
|
#define _mm_maskz_range_sd(U, A, B, C) _mm_maskz_range_round_sd(U, A, B, C ,_MM_FROUND_CUR_DIRECTION)
|
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_reduce_pd(A, B) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m512d)__builtin_ia32_reducepd512_mask((__v8df)(__m512d)(A), (int)(B), \
|
|
|
|
(__v8df)_mm512_setzero_pd(), \
|
|
|
|
(__mmask8)-1, \
|
2018-05-31 08:51:20 +08:00
|
|
|
_MM_FROUND_CUR_DIRECTION)
|
2016-05-17 12:41:36 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_mask_reduce_pd(W, U, A, B) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m512d)__builtin_ia32_reducepd512_mask((__v8df)(__m512d)(A), (int)(B), \
|
|
|
|
(__v8df)(__m512d)(W), \
|
|
|
|
(__mmask8)(U), \
|
2018-05-31 08:51:20 +08:00
|
|
|
_MM_FROUND_CUR_DIRECTION)
|
2016-05-17 12:41:36 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_maskz_reduce_pd(U, A, B) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m512d)__builtin_ia32_reducepd512_mask((__v8df)(__m512d)(A), (int)(B), \
|
|
|
|
(__v8df)_mm512_setzero_pd(), \
|
|
|
|
(__mmask8)(U), \
|
2018-05-31 08:51:20 +08:00
|
|
|
_MM_FROUND_CUR_DIRECTION)
|
2016-05-17 12:41:36 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_reduce_ps(A, B) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m512)__builtin_ia32_reduceps512_mask((__v16sf)(__m512)(A), (int)(B), \
|
|
|
|
(__v16sf)_mm512_setzero_ps(), \
|
|
|
|
(__mmask16)-1, \
|
2018-05-31 08:51:20 +08:00
|
|
|
_MM_FROUND_CUR_DIRECTION)
|
2016-05-17 12:41:36 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_mask_reduce_ps(W, U, A, B) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m512)__builtin_ia32_reduceps512_mask((__v16sf)(__m512)(A), (int)(B), \
|
|
|
|
(__v16sf)(__m512)(W), \
|
|
|
|
(__mmask16)(U), \
|
2018-05-31 08:51:20 +08:00
|
|
|
_MM_FROUND_CUR_DIRECTION)
|
2016-05-17 12:41:36 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_maskz_reduce_ps(U, A, B) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m512)__builtin_ia32_reduceps512_mask((__v16sf)(__m512)(A), (int)(B), \
|
|
|
|
(__v16sf)_mm512_setzero_ps(), \
|
|
|
|
(__mmask16)(U), \
|
2018-05-31 08:51:20 +08:00
|
|
|
_MM_FROUND_CUR_DIRECTION)
|
2016-05-17 12:41:36 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_reduce_round_pd(A, B, R) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m512d)__builtin_ia32_reducepd512_mask((__v8df)(__m512d)(A), (int)(B), \
|
|
|
|
(__v8df)_mm512_setzero_pd(), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)-1, (int)(R))
|
2016-05-17 12:41:36 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_mask_reduce_round_pd(W, U, A, B, R) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m512d)__builtin_ia32_reducepd512_mask((__v8df)(__m512d)(A), (int)(B), \
|
|
|
|
(__v8df)(__m512d)(W), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)(U), (int)(R))
|
2016-05-17 12:41:36 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_maskz_reduce_round_pd(U, A, B, R) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m512d)__builtin_ia32_reducepd512_mask((__v8df)(__m512d)(A), (int)(B), \
|
|
|
|
(__v8df)_mm512_setzero_pd(), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)(U), (int)(R))
|
2016-05-17 12:41:36 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_reduce_round_ps(A, B, R) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m512)__builtin_ia32_reduceps512_mask((__v16sf)(__m512)(A), (int)(B), \
|
|
|
|
(__v16sf)_mm512_setzero_ps(), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask16)-1, (int)(R))
|
2016-05-17 12:41:36 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_mask_reduce_round_ps(W, U, A, B, R) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m512)__builtin_ia32_reduceps512_mask((__v16sf)(__m512)(A), (int)(B), \
|
|
|
|
(__v16sf)(__m512)(W), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask16)(U), (int)(R))
|
2016-05-17 12:41:36 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_maskz_reduce_round_ps(U, A, B, R) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__m512)__builtin_ia32_reduceps512_mask((__v16sf)(__m512)(A), (int)(B), \
|
|
|
|
(__v16sf)_mm512_setzero_ps(), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask16)(U), (int)(R))
|
2015-09-17 22:53:37 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm_reduce_ss(A, B, C) \
|
2016-06-08 14:08:07 +08:00
|
|
|
(__m128)__builtin_ia32_reducess_mask((__v4sf)(__m128)(A), \
|
|
|
|
(__v4sf)(__m128)(B), \
|
|
|
|
(__v4sf)_mm_setzero_ps(), (__mmask8)-1, \
|
2018-05-31 08:51:20 +08:00
|
|
|
(int)(C), _MM_FROUND_CUR_DIRECTION)
|
2016-06-07 22:00:20 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm_mask_reduce_ss(W, U, A, B, C) \
|
2016-06-08 14:08:07 +08:00
|
|
|
(__m128)__builtin_ia32_reducess_mask((__v4sf)(__m128)(A), \
|
|
|
|
(__v4sf)(__m128)(B), \
|
|
|
|
(__v4sf)(__m128)(W), (__mmask8)(U), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(int)(C), _MM_FROUND_CUR_DIRECTION)
|
2016-06-07 22:00:20 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm_maskz_reduce_ss(U, A, B, C) \
|
2016-06-08 14:08:07 +08:00
|
|
|
(__m128)__builtin_ia32_reducess_mask((__v4sf)(__m128)(A), \
|
|
|
|
(__v4sf)(__m128)(B), \
|
|
|
|
(__v4sf)_mm_setzero_ps(), \
|
|
|
|
(__mmask8)(U), (int)(C), \
|
2018-05-31 08:51:20 +08:00
|
|
|
_MM_FROUND_CUR_DIRECTION)
|
2016-06-08 14:08:07 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm_reduce_round_ss(A, B, C, R) \
|
2016-06-08 14:08:07 +08:00
|
|
|
(__m128)__builtin_ia32_reducess_mask((__v4sf)(__m128)(A), \
|
|
|
|
(__v4sf)(__m128)(B), \
|
|
|
|
(__v4sf)_mm_setzero_ps(), (__mmask8)-1, \
|
2018-05-31 08:51:20 +08:00
|
|
|
(int)(C), (int)(R))
|
2016-06-07 22:00:20 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm_mask_reduce_round_ss(W, U, A, B, C, R) \
|
2016-06-08 14:08:07 +08:00
|
|
|
(__m128)__builtin_ia32_reducess_mask((__v4sf)(__m128)(A), \
|
|
|
|
(__v4sf)(__m128)(B), \
|
|
|
|
(__v4sf)(__m128)(W), (__mmask8)(U), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(int)(C), (int)(R))
|
2016-06-07 22:00:20 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm_maskz_reduce_round_ss(U, A, B, C, R) \
|
2016-06-08 14:08:07 +08:00
|
|
|
(__m128)__builtin_ia32_reducess_mask((__v4sf)(__m128)(A), \
|
|
|
|
(__v4sf)(__m128)(B), \
|
|
|
|
(__v4sf)_mm_setzero_ps(), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)(U), (int)(C), (int)(R))
|
2016-06-07 22:00:20 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm_reduce_sd(A, B, C) \
|
2016-06-08 14:08:07 +08:00
|
|
|
(__m128d)__builtin_ia32_reducesd_mask((__v2df)(__m128d)(A), \
|
|
|
|
(__v2df)(__m128d)(B), \
|
|
|
|
(__v2df)_mm_setzero_pd(), \
|
|
|
|
(__mmask8)-1, (int)(C), \
|
2018-05-31 08:51:20 +08:00
|
|
|
_MM_FROUND_CUR_DIRECTION)
|
2016-06-07 22:00:20 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm_mask_reduce_sd(W, U, A, B, C) \
|
2016-06-08 14:08:07 +08:00
|
|
|
(__m128d)__builtin_ia32_reducesd_mask((__v2df)(__m128d)(A), \
|
|
|
|
(__v2df)(__m128d)(B), \
|
|
|
|
(__v2df)(__m128d)(W), (__mmask8)(U), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(int)(C), _MM_FROUND_CUR_DIRECTION)
|
2016-06-07 22:00:20 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm_maskz_reduce_sd(U, A, B, C) \
|
2016-06-08 14:08:07 +08:00
|
|
|
(__m128d)__builtin_ia32_reducesd_mask((__v2df)(__m128d)(A), \
|
|
|
|
(__v2df)(__m128d)(B), \
|
|
|
|
(__v2df)_mm_setzero_pd(), \
|
|
|
|
(__mmask8)(U), (int)(C), \
|
2018-05-31 08:51:20 +08:00
|
|
|
_MM_FROUND_CUR_DIRECTION)
|
2016-06-08 14:08:07 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm_reduce_round_sd(A, B, C, R) \
|
2016-06-08 14:08:07 +08:00
|
|
|
(__m128d)__builtin_ia32_reducesd_mask((__v2df)(__m128d)(A), \
|
|
|
|
(__v2df)(__m128d)(B), \
|
|
|
|
(__v2df)_mm_setzero_pd(), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)-1, (int)(C), (int)(R))
|
2016-06-07 22:00:20 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm_mask_reduce_round_sd(W, U, A, B, C, R) \
|
2016-06-08 14:08:07 +08:00
|
|
|
(__m128d)__builtin_ia32_reducesd_mask((__v2df)(__m128d)(A), \
|
|
|
|
(__v2df)(__m128d)(B), \
|
|
|
|
(__v2df)(__m128d)(W), (__mmask8)(U), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(int)(C), (int)(R))
|
2016-06-07 22:00:20 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm_maskz_reduce_round_sd(U, A, B, C, R) \
|
2016-06-08 14:08:07 +08:00
|
|
|
(__m128d)__builtin_ia32_reducesd_mask((__v2df)(__m128d)(A), \
|
|
|
|
(__v2df)(__m128d)(B), \
|
|
|
|
(__v2df)_mm_setzero_pd(), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)(U), (int)(C), (int)(R))
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __mmask16 __DEFAULT_FN_ATTRS512
|
2016-04-13 18:49:37 +08:00
|
|
|
_mm512_movepi32_mask (__m512i __A)
|
|
|
|
{
|
|
|
|
return (__mmask16) __builtin_ia32_cvtd2mask512 ((__v16si) __A);
|
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512i __DEFAULT_FN_ATTRS512
|
2016-04-13 18:49:37 +08:00
|
|
|
_mm512_movm_epi32 (__mmask16 __A)
|
|
|
|
{
|
|
|
|
return (__m512i) __builtin_ia32_cvtmask2d512 (__A);
|
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512i __DEFAULT_FN_ATTRS512
|
2016-04-13 18:49:37 +08:00
|
|
|
_mm512_movm_epi64 (__mmask8 __A)
|
|
|
|
{
|
|
|
|
return (__m512i) __builtin_ia32_cvtmask2q512 (__A);
|
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __mmask8 __DEFAULT_FN_ATTRS512
|
2016-04-13 18:49:37 +08:00
|
|
|
_mm512_movepi64_mask (__m512i __A)
|
|
|
|
{
|
|
|
|
return (__mmask8) __builtin_ia32_cvtq2mask512 ((__v8di) __A);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512 __DEFAULT_FN_ATTRS512
|
2016-04-13 20:58:01 +08:00
|
|
|
_mm512_broadcast_f32x2 (__m128 __A)
|
|
|
|
{
|
2018-06-05 03:28:09 +08:00
|
|
|
return (__m512)__builtin_shufflevector((__v4sf)__A, (__v4sf)__A,
|
2017-08-31 00:15:12 +08:00
|
|
|
0, 1, 0, 1, 0, 1, 0, 1,
|
|
|
|
0, 1, 0, 1, 0, 1, 0, 1);
|
2016-04-13 20:58:01 +08:00
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512 __DEFAULT_FN_ATTRS512
|
2016-04-13 20:58:01 +08:00
|
|
|
_mm512_mask_broadcast_f32x2 (__m512 __O, __mmask16 __M, __m128 __A)
|
|
|
|
{
|
2017-08-31 00:15:12 +08:00
|
|
|
return (__m512)__builtin_ia32_selectps_512((__mmask16)__M,
|
|
|
|
(__v16sf)_mm512_broadcast_f32x2(__A),
|
|
|
|
(__v16sf)__O);
|
2016-04-13 20:58:01 +08:00
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512 __DEFAULT_FN_ATTRS512
|
2016-04-13 20:58:01 +08:00
|
|
|
_mm512_maskz_broadcast_f32x2 (__mmask16 __M, __m128 __A)
|
|
|
|
{
|
2017-08-31 00:15:12 +08:00
|
|
|
return (__m512)__builtin_ia32_selectps_512((__mmask16)__M,
|
|
|
|
(__v16sf)_mm512_broadcast_f32x2(__A),
|
|
|
|
(__v16sf)_mm512_setzero_ps());
|
2016-04-13 20:58:01 +08:00
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512 __DEFAULT_FN_ATTRS512
|
2017-01-18 10:17:10 +08:00
|
|
|
_mm512_broadcast_f32x8(__m256 __A)
|
2016-04-13 20:58:01 +08:00
|
|
|
{
|
2017-01-18 10:17:10 +08:00
|
|
|
return (__m512)__builtin_shufflevector((__v8sf)__A, (__v8sf)__A,
|
|
|
|
0, 1, 2, 3, 4, 5, 6, 7,
|
|
|
|
0, 1, 2, 3, 4, 5, 6, 7);
|
2016-04-13 20:58:01 +08:00
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512 __DEFAULT_FN_ATTRS512
|
2017-01-18 10:17:10 +08:00
|
|
|
_mm512_mask_broadcast_f32x8(__m512 __O, __mmask16 __M, __m256 __A)
|
2016-04-13 20:58:01 +08:00
|
|
|
{
|
2018-06-30 14:05:17 +08:00
|
|
|
return (__m512)__builtin_ia32_selectps_512((__mmask16)__M,
|
2017-01-18 10:17:10 +08:00
|
|
|
(__v16sf)_mm512_broadcast_f32x8(__A),
|
|
|
|
(__v16sf)__O);
|
2016-04-13 20:58:01 +08:00
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512 __DEFAULT_FN_ATTRS512
|
2017-01-18 10:17:10 +08:00
|
|
|
_mm512_maskz_broadcast_f32x8(__mmask16 __M, __m256 __A)
|
2016-04-13 20:58:01 +08:00
|
|
|
{
|
2018-06-30 14:05:17 +08:00
|
|
|
return (__m512)__builtin_ia32_selectps_512((__mmask16)__M,
|
2017-01-18 10:17:10 +08:00
|
|
|
(__v16sf)_mm512_broadcast_f32x8(__A),
|
|
|
|
(__v16sf)_mm512_setzero_ps());
|
2016-04-13 20:58:01 +08:00
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512d __DEFAULT_FN_ATTRS512
|
2017-01-18 10:17:10 +08:00
|
|
|
_mm512_broadcast_f64x2(__m128d __A)
|
2016-04-13 20:58:01 +08:00
|
|
|
{
|
2017-01-18 10:17:10 +08:00
|
|
|
return (__m512d)__builtin_shufflevector((__v2df)__A, (__v2df)__A,
|
|
|
|
0, 1, 0, 1, 0, 1, 0, 1);
|
2016-04-13 20:58:01 +08:00
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512d __DEFAULT_FN_ATTRS512
|
2017-01-18 10:17:10 +08:00
|
|
|
_mm512_mask_broadcast_f64x2(__m512d __O, __mmask8 __M, __m128d __A)
|
2016-04-13 20:58:01 +08:00
|
|
|
{
|
2017-01-18 10:17:10 +08:00
|
|
|
return (__m512d)__builtin_ia32_selectpd_512((__mmask8)__M,
|
|
|
|
(__v8df)_mm512_broadcast_f64x2(__A),
|
|
|
|
(__v8df)__O);
|
2016-04-13 20:58:01 +08:00
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512d __DEFAULT_FN_ATTRS512
|
2017-01-18 10:17:10 +08:00
|
|
|
_mm512_maskz_broadcast_f64x2(__mmask8 __M, __m128d __A)
|
2016-04-13 20:58:01 +08:00
|
|
|
{
|
2017-01-18 10:17:10 +08:00
|
|
|
return (__m512d)__builtin_ia32_selectpd_512((__mmask8)__M,
|
|
|
|
(__v8df)_mm512_broadcast_f64x2(__A),
|
|
|
|
(__v8df)_mm512_setzero_pd());
|
2016-04-13 20:58:01 +08:00
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512i __DEFAULT_FN_ATTRS512
|
2016-04-13 20:58:01 +08:00
|
|
|
_mm512_broadcast_i32x2 (__m128i __A)
|
|
|
|
{
|
2018-06-05 03:28:09 +08:00
|
|
|
return (__m512i)__builtin_shufflevector((__v4si)__A, (__v4si)__A,
|
2017-08-31 00:15:12 +08:00
|
|
|
0, 1, 0, 1, 0, 1, 0, 1,
|
|
|
|
0, 1, 0, 1, 0, 1, 0, 1);
|
2016-04-13 20:58:01 +08:00
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512i __DEFAULT_FN_ATTRS512
|
2016-04-13 20:58:01 +08:00
|
|
|
_mm512_mask_broadcast_i32x2 (__m512i __O, __mmask16 __M, __m128i __A)
|
|
|
|
{
|
2017-08-31 00:15:12 +08:00
|
|
|
return (__m512i)__builtin_ia32_selectd_512((__mmask16)__M,
|
|
|
|
(__v16si)_mm512_broadcast_i32x2(__A),
|
|
|
|
(__v16si)__O);
|
2016-04-13 20:58:01 +08:00
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512i __DEFAULT_FN_ATTRS512
|
2016-04-13 20:58:01 +08:00
|
|
|
_mm512_maskz_broadcast_i32x2 (__mmask16 __M, __m128i __A)
|
|
|
|
{
|
2017-08-31 00:15:12 +08:00
|
|
|
return (__m512i)__builtin_ia32_selectd_512((__mmask16)__M,
|
|
|
|
(__v16si)_mm512_broadcast_i32x2(__A),
|
|
|
|
(__v16si)_mm512_setzero_si512());
|
2016-04-13 20:58:01 +08:00
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512i __DEFAULT_FN_ATTRS512
|
2017-01-18 10:17:10 +08:00
|
|
|
_mm512_broadcast_i32x8(__m256i __A)
|
2016-04-13 20:58:01 +08:00
|
|
|
{
|
2017-01-18 10:17:10 +08:00
|
|
|
return (__m512i)__builtin_shufflevector((__v8si)__A, (__v8si)__A,
|
|
|
|
0, 1, 2, 3, 4, 5, 6, 7,
|
|
|
|
0, 1, 2, 3, 4, 5, 6, 7);
|
2016-04-13 20:58:01 +08:00
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512i __DEFAULT_FN_ATTRS512
|
2017-01-18 10:17:10 +08:00
|
|
|
_mm512_mask_broadcast_i32x8(__m512i __O, __mmask16 __M, __m256i __A)
|
2016-04-13 20:58:01 +08:00
|
|
|
{
|
2018-06-30 14:05:17 +08:00
|
|
|
return (__m512i)__builtin_ia32_selectd_512((__mmask16)__M,
|
2017-01-18 10:17:10 +08:00
|
|
|
(__v16si)_mm512_broadcast_i32x8(__A),
|
|
|
|
(__v16si)__O);
|
2016-04-13 20:58:01 +08:00
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512i __DEFAULT_FN_ATTRS512
|
2017-01-18 10:17:10 +08:00
|
|
|
_mm512_maskz_broadcast_i32x8(__mmask16 __M, __m256i __A)
|
2016-04-13 20:58:01 +08:00
|
|
|
{
|
2018-06-30 14:05:17 +08:00
|
|
|
return (__m512i)__builtin_ia32_selectd_512((__mmask16)__M,
|
2017-01-18 10:17:10 +08:00
|
|
|
(__v16si)_mm512_broadcast_i32x8(__A),
|
|
|
|
(__v16si)_mm512_setzero_si512());
|
2016-04-13 20:58:01 +08:00
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512i __DEFAULT_FN_ATTRS512
|
2017-01-18 10:17:10 +08:00
|
|
|
_mm512_broadcast_i64x2(__m128i __A)
|
2016-04-13 20:58:01 +08:00
|
|
|
{
|
2017-01-18 10:17:10 +08:00
|
|
|
return (__m512i)__builtin_shufflevector((__v2di)__A, (__v2di)__A,
|
|
|
|
0, 1, 0, 1, 0, 1, 0, 1);
|
2016-04-13 20:58:01 +08:00
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512i __DEFAULT_FN_ATTRS512
|
2017-01-18 10:17:10 +08:00
|
|
|
_mm512_mask_broadcast_i64x2(__m512i __O, __mmask8 __M, __m128i __A)
|
2016-04-13 20:58:01 +08:00
|
|
|
{
|
2017-01-18 10:17:10 +08:00
|
|
|
return (__m512i)__builtin_ia32_selectq_512((__mmask8)__M,
|
|
|
|
(__v8di)_mm512_broadcast_i64x2(__A),
|
|
|
|
(__v8di)__O);
|
2016-04-13 20:58:01 +08:00
|
|
|
}
|
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
static __inline__ __m512i __DEFAULT_FN_ATTRS512
|
2017-01-18 10:17:10 +08:00
|
|
|
_mm512_maskz_broadcast_i64x2(__mmask8 __M, __m128i __A)
|
2016-04-13 20:58:01 +08:00
|
|
|
{
|
2017-01-18 10:17:10 +08:00
|
|
|
return (__m512i)__builtin_ia32_selectq_512((__mmask8)__M,
|
|
|
|
(__v8di)_mm512_broadcast_i64x2(__A),
|
|
|
|
(__v8di)_mm512_setzero_si512());
|
2016-04-13 20:58:01 +08:00
|
|
|
}
|
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_extractf32x8_ps(A, imm) \
|
2018-06-09 05:50:07 +08:00
|
|
|
(__m256)__builtin_ia32_extractf32x8_mask((__v16sf)(__m512)(A), (int)(imm), \
|
|
|
|
(__v8sf)_mm256_undefined_ps(), \
|
2018-07-18 04:22:17 +08:00
|
|
|
(__mmask8)-1)
|
2016-05-17 12:41:36 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_mask_extractf32x8_ps(W, U, A, imm) \
|
2018-06-09 05:50:07 +08:00
|
|
|
(__m256)__builtin_ia32_extractf32x8_mask((__v16sf)(__m512)(A), (int)(imm), \
|
|
|
|
(__v8sf)(__m256)(W), \
|
|
|
|
(__mmask8)(U))
|
2016-05-17 12:41:36 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_maskz_extractf32x8_ps(U, A, imm) \
|
2018-06-09 05:50:07 +08:00
|
|
|
(__m256)__builtin_ia32_extractf32x8_mask((__v16sf)(__m512)(A), (int)(imm), \
|
|
|
|
(__v8sf)_mm256_setzero_ps(), \
|
|
|
|
(__mmask8)(U))
|
2016-05-17 12:41:36 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_extractf64x2_pd(A, imm) \
|
2018-06-09 05:50:07 +08:00
|
|
|
(__m128d)__builtin_ia32_extractf64x2_512_mask((__v8df)(__m512d)(A), \
|
|
|
|
(int)(imm), \
|
|
|
|
(__v2df)_mm_undefined_pd(), \
|
|
|
|
(__mmask8)-1)
|
2016-05-17 12:41:36 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_mask_extractf64x2_pd(W, U, A, imm) \
|
2018-06-09 05:50:07 +08:00
|
|
|
(__m128d)__builtin_ia32_extractf64x2_512_mask((__v8df)(__m512d)(A), \
|
|
|
|
(int)(imm), \
|
|
|
|
(__v2df)(__m128d)(W), \
|
|
|
|
(__mmask8)(U))
|
2016-05-17 12:41:36 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_maskz_extractf64x2_pd(U, A, imm) \
|
2018-06-09 05:50:07 +08:00
|
|
|
(__m128d)__builtin_ia32_extractf64x2_512_mask((__v8df)(__m512d)(A), \
|
|
|
|
(int)(imm), \
|
|
|
|
(__v2df)_mm_setzero_pd(), \
|
|
|
|
(__mmask8)(U))
|
2016-05-17 12:41:36 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_extracti32x8_epi32(A, imm) \
|
2018-06-09 05:50:07 +08:00
|
|
|
(__m256i)__builtin_ia32_extracti32x8_mask((__v16si)(__m512i)(A), (int)(imm), \
|
|
|
|
(__v8si)_mm256_undefined_si256(), \
|
|
|
|
(__mmask8)-1)
|
2016-05-17 12:41:36 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_mask_extracti32x8_epi32(W, U, A, imm) \
|
2018-06-09 05:50:07 +08:00
|
|
|
(__m256i)__builtin_ia32_extracti32x8_mask((__v16si)(__m512i)(A), (int)(imm), \
|
|
|
|
(__v8si)(__m256i)(W), \
|
|
|
|
(__mmask8)(U))
|
2016-05-17 12:41:36 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_maskz_extracti32x8_epi32(U, A, imm) \
|
2018-06-09 05:50:07 +08:00
|
|
|
(__m256i)__builtin_ia32_extracti32x8_mask((__v16si)(__m512i)(A), (int)(imm), \
|
|
|
|
(__v8si)_mm256_setzero_si256(), \
|
|
|
|
(__mmask8)(U))
|
2016-05-17 12:41:36 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_extracti64x2_epi64(A, imm) \
|
2018-06-09 05:50:07 +08:00
|
|
|
(__m128i)__builtin_ia32_extracti64x2_512_mask((__v8di)(__m512i)(A), \
|
|
|
|
(int)(imm), \
|
|
|
|
(__v2di)_mm_undefined_si128(), \
|
|
|
|
(__mmask8)-1)
|
2016-05-17 12:41:36 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_mask_extracti64x2_epi64(W, U, A, imm) \
|
2018-06-09 05:50:07 +08:00
|
|
|
(__m128i)__builtin_ia32_extracti64x2_512_mask((__v8di)(__m512i)(A), \
|
|
|
|
(int)(imm), \
|
|
|
|
(__v2di)(__m128i)(W), \
|
|
|
|
(__mmask8)(U))
|
2016-05-17 12:41:36 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_maskz_extracti64x2_epi64(U, A, imm) \
|
2018-06-09 05:50:07 +08:00
|
|
|
(__m128i)__builtin_ia32_extracti64x2_512_mask((__v8di)(__m512i)(A), \
|
|
|
|
(int)(imm), \
|
|
|
|
(__v2di)_mm_setzero_si128(), \
|
|
|
|
(__mmask8)(U))
|
2016-04-19 23:18:23 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_insertf32x8(A, B, imm) \
|
2018-06-08 11:24:47 +08:00
|
|
|
(__m512)__builtin_ia32_insertf32x8((__v16sf)(__m512)(A), \
|
|
|
|
(__v8sf)(__m256)(B), (int)(imm))
|
2016-06-08 14:08:07 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_mask_insertf32x8(W, U, A, B, imm) \
|
2016-11-01 13:47:56 +08:00
|
|
|
(__m512)__builtin_ia32_selectps_512((__mmask16)(U), \
|
|
|
|
(__v16sf)_mm512_insertf32x8((A), (B), (imm)), \
|
2018-05-31 09:24:40 +08:00
|
|
|
(__v16sf)(__m512)(W))
|
2016-06-08 14:08:07 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_maskz_insertf32x8(U, A, B, imm) \
|
2016-11-01 13:47:56 +08:00
|
|
|
(__m512)__builtin_ia32_selectps_512((__mmask16)(U), \
|
|
|
|
(__v16sf)_mm512_insertf32x8((A), (B), (imm)), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__v16sf)_mm512_setzero_ps())
|
2016-05-16 05:26:20 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_insertf64x2(A, B, imm) \
|
2018-06-08 11:24:47 +08:00
|
|
|
(__m512d)__builtin_ia32_insertf64x2_512((__v8df)(__m512d)(A), \
|
|
|
|
(__v2df)(__m128d)(B), (int)(imm))
|
2016-05-17 12:41:36 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_mask_insertf64x2(W, U, A, B, imm) \
|
2016-11-01 13:47:56 +08:00
|
|
|
(__m512d)__builtin_ia32_selectpd_512((__mmask8)(U), \
|
|
|
|
(__v8df)_mm512_insertf64x2((A), (B), (imm)), \
|
2018-05-31 09:24:40 +08:00
|
|
|
(__v8df)(__m512d)(W))
|
2016-05-17 12:41:36 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_maskz_insertf64x2(U, A, B, imm) \
|
2016-11-01 13:47:56 +08:00
|
|
|
(__m512d)__builtin_ia32_selectpd_512((__mmask8)(U), \
|
|
|
|
(__v8df)_mm512_insertf64x2((A), (B), (imm)), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__v8df)_mm512_setzero_pd())
|
2016-05-17 12:41:36 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_inserti32x8(A, B, imm) \
|
2018-06-08 11:24:47 +08:00
|
|
|
(__m512i)__builtin_ia32_inserti32x8((__v16si)(__m512i)(A), \
|
|
|
|
(__v8si)(__m256i)(B), (int)(imm))
|
2016-05-17 12:41:36 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_mask_inserti32x8(W, U, A, B, imm) \
|
2016-11-01 13:47:56 +08:00
|
|
|
(__m512i)__builtin_ia32_selectd_512((__mmask16)(U), \
|
|
|
|
(__v16si)_mm512_inserti32x8((A), (B), (imm)), \
|
2018-05-31 09:24:40 +08:00
|
|
|
(__v16si)(__m512i)(W))
|
2016-05-17 12:41:36 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_maskz_inserti32x8(U, A, B, imm) \
|
2016-11-01 13:47:56 +08:00
|
|
|
(__m512i)__builtin_ia32_selectd_512((__mmask16)(U), \
|
|
|
|
(__v16si)_mm512_inserti32x8((A), (B), (imm)), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__v16si)_mm512_setzero_si512())
|
2016-05-17 12:41:36 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_inserti64x2(A, B, imm) \
|
2018-06-08 11:24:47 +08:00
|
|
|
(__m512i)__builtin_ia32_inserti64x2_512((__v8di)(__m512i)(A), \
|
|
|
|
(__v2di)(__m128i)(B), (int)(imm))
|
2016-05-17 12:41:36 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_mask_inserti64x2(W, U, A, B, imm) \
|
2016-11-01 13:47:56 +08:00
|
|
|
(__m512i)__builtin_ia32_selectq_512((__mmask8)(U), \
|
|
|
|
(__v8di)_mm512_inserti64x2((A), (B), (imm)), \
|
2018-05-31 09:24:40 +08:00
|
|
|
(__v8di)(__m512i)(W))
|
2016-05-17 12:41:36 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_maskz_inserti64x2(U, A, B, imm) \
|
2016-11-01 13:47:56 +08:00
|
|
|
(__m512i)__builtin_ia32_selectq_512((__mmask8)(U), \
|
|
|
|
(__v8di)_mm512_inserti64x2((A), (B), (imm)), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__v8di)_mm512_setzero_si512())
|
2016-05-17 12:41:36 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_mask_fpclass_ps_mask(U, A, imm) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__mmask16)__builtin_ia32_fpclassps512_mask((__v16sf)(__m512)(A), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(int)(imm), (__mmask16)(U))
|
2016-05-17 12:41:36 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_fpclass_ps_mask(A, imm) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__mmask16)__builtin_ia32_fpclassps512_mask((__v16sf)(__m512)(A), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(int)(imm), (__mmask16)-1)
|
2016-05-17 12:41:36 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_mask_fpclass_pd_mask(U, A, imm) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__mmask8)__builtin_ia32_fpclasspd512_mask((__v8df)(__m512d)(A), (int)(imm), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)(U))
|
2016-05-17 12:41:36 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_fpclass_pd_mask(A, imm) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__mmask8)__builtin_ia32_fpclasspd512_mask((__v8df)(__m512d)(A), (int)(imm), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)-1)
|
2016-05-17 12:41:36 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm_fpclass_sd_mask(A, imm) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__mmask8)__builtin_ia32_fpclasssd_mask((__v2df)(__m128d)(A), (int)(imm), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)-1)
|
2016-05-17 12:41:36 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm_mask_fpclass_sd_mask(U, A, imm) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__mmask8)__builtin_ia32_fpclasssd_mask((__v2df)(__m128d)(A), (int)(imm), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)(U))
|
2016-05-17 12:41:36 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm_fpclass_ss_mask(A, imm) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__mmask8)__builtin_ia32_fpclassss_mask((__v4sf)(__m128)(A), (int)(imm), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)-1)
|
2016-05-17 12:41:36 +08:00
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm_mask_fpclass_ss_mask(U, A, imm) \
|
2016-05-17 12:41:36 +08:00
|
|
|
(__mmask8)__builtin_ia32_fpclassss_mask((__v4sf)(__m128)(A), (int)(imm), \
|
2018-05-31 08:51:20 +08:00
|
|
|
(__mmask8)(U))
|
2016-04-25 22:48:23 +08:00
|
|
|
|
2018-08-27 14:20:19 +08:00
|
|
|
#undef __DEFAULT_FN_ATTRS512
|
2018-08-27 14:20:22 +08:00
|
|
|
#undef __DEFAULT_FN_ATTRS
|
2015-06-17 15:09:20 +08:00
|
|
|
|
2015-04-30 17:24:29 +08:00
|
|
|
#endif
|