Path: blob/master/tools/android-sdk/renderscript/clang-include/avx512ifmaintrin.h
496 views
/*===------------- avx512ifmaintrin.h - IFMA intrinsics ------------------===1*2*3* Permission is hereby granted, free of charge, to any person obtaining a copy4* of this software and associated documentation files (the "Software"), to deal5* in the Software without restriction, including without limitation the rights6* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell7* copies of the Software, and to permit persons to whom the Software is8* furnished to do so, subject to the following conditions:9*10* The above copyright notice and this permission notice shall be included in11* all copies or substantial portions of the Software.12*13* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR14* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,15* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE16* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER17* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,18* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN19* THE SOFTWARE.20*21*===-----------------------------------------------------------------------===22*/23#ifndef __IMMINTRIN_H24#error "Never use <avx512ifmaintrin.h> directly; include <immintrin.h> instead."25#endif2627#ifndef __IFMAINTRIN_H28#define __IFMAINTRIN_H2930/* Define the default attributes for the functions in this file. */31#define __DEFAULT_FN_ATTRS __attribute__((__always_inline__, __nodebug__, __target__("avx512ifma")))3233static __inline__ __m512i __DEFAULT_FN_ATTRS34_mm512_madd52hi_epu64 (__m512i __X, __m512i __Y, __m512i __Z)35{36return (__m512i) __builtin_ia32_vpmadd52huq512_mask ((__v8di) __X,37(__v8di) __Y,38(__v8di) __Z,39(__mmask8) -1);40}4142static __inline__ __m512i __DEFAULT_FN_ATTRS43_mm512_mask_madd52hi_epu64 (__m512i __W, __mmask8 __M, __m512i __X,44__m512i __Y)45{46return (__m512i) __builtin_ia32_vpmadd52huq512_mask ((__v8di) __W,47(__v8di) __X,48(__v8di) __Y,49(__mmask8) __M);50}5152static __inline__ __m512i __DEFAULT_FN_ATTRS53_mm512_maskz_madd52hi_epu64 (__mmask8 __M, __m512i __X, __m512i __Y, __m512i __Z)54{55return (__m512i) __builtin_ia32_vpmadd52huq512_maskz ((__v8di) __X,56(__v8di) __Y,57(__v8di) __Z,58(__mmask8) __M);59}6061static __inline__ __m512i __DEFAULT_FN_ATTRS62_mm512_madd52lo_epu64 (__m512i __X, __m512i __Y, __m512i __Z)63{64return (__m512i) __builtin_ia32_vpmadd52luq512_mask ((__v8di) __X,65(__v8di) __Y,66(__v8di) __Z,67(__mmask8) -1);68}6970static __inline__ __m512i __DEFAULT_FN_ATTRS71_mm512_mask_madd52lo_epu64 (__m512i __W, __mmask8 __M, __m512i __X,72__m512i __Y)73{74return (__m512i) __builtin_ia32_vpmadd52luq512_mask ((__v8di) __W,75(__v8di) __X,76(__v8di) __Y,77(__mmask8) __M);78}7980static __inline__ __m512i __DEFAULT_FN_ATTRS81_mm512_maskz_madd52lo_epu64 (__mmask8 __M, __m512i __X, __m512i __Y, __m512i __Z)82{83return (__m512i) __builtin_ia32_vpmadd52luq512_maskz ((__v8di) __X,84(__v8di) __Y,85(__v8di) __Z,86(__mmask8) __M);87}8889#undef __DEFAULT_FN_ATTRS9091#endif929394