brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · 89a4c44 Raw
35 lines · c
1/*===---- xsaveoptintrin.h - XSAVEOPT intrinsic ----------------------------===2 *3 * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4 * See https://llvm.org/LICENSE.txt for license information.5 * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6 *7 *===-----------------------------------------------------------------------===8 */9 10#ifndef __IMMINTRIN_H11#error "Never use <xsaveoptintrin.h> directly; include <immintrin.h> instead."12#endif13 14#ifndef __XSAVEOPTINTRIN_H15#define __XSAVEOPTINTRIN_H16 17/* Define the default attributes for the functions in this file. */18#define __DEFAULT_FN_ATTRS __attribute__((__always_inline__, __nodebug__,  __target__("xsaveopt")))19 20static __inline__ void __DEFAULT_FN_ATTRS21_xsaveopt(void *__p, unsigned long long __m) {22  __builtin_ia32_xsaveopt(__p, __m);23}24 25#ifdef __x86_64__26static __inline__ void __DEFAULT_FN_ATTRS27_xsaveopt64(void *__p, unsigned long long __m) {28  __builtin_ia32_xsaveopt64(__p, __m);29}30#endif31 32#undef __DEFAULT_FN_ATTRS33 34#endif35