ETISS 0.8.0
Extendable Translating Instruction Set Simulator (version 0.8.0)
clzerointrin.h
Go to the documentation of this file.
1 /*===----------------------- clzerointrin.h - CLZERO ----------------------===
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-exception
6  *
7  *===-----------------------------------------------------------------------===
8  */
9 #if !defined __X86INTRIN_H && !defined __IMMINTRIN_H
10 #error "Never use <clzerointrin.h> directly; include <x86intrin.h> instead."
11 #endif
12 
13 #ifndef __CLZEROINTRIN_H
14 #define __CLZEROINTRIN_H
15 
16 /* Define the default attributes for the functions in this file. */
17 #define __DEFAULT_FN_ATTRS \
18  __attribute__((__always_inline__, __nodebug__, __target__("clzero")))
19 
28 static __inline__ void __DEFAULT_FN_ATTRS
29 _mm_clzero (void * __line)
30 {
31  __builtin_ia32_clzero ((void *)__line);
32 }
33 
34 #undef __DEFAULT_FN_ATTRS
35 
36 #endif /* __CLZEROINTRIN_H */
#define __DEFAULT_FN_ATTRS
Definition: clzerointrin.h:17
static __inline__ void __DEFAULT_FN_ATTRS _mm_clzero(void *__line)
Loads the cache line address and zero's out the cacheline.
Definition: clzerointrin.h:29