clflushoptintrin.h revision 327952
1303233Sdim/*===---- clflushoptintrin.h - CLFLUSHOPT intrinsic ------------------------------------=== 2303233Sdim * 3303233Sdim * Permission is hereby granted, free of charge, to any person obtaining a copy 4303233Sdim * of this software and associated documentation files (the "Software"), to deal 5303233Sdim * in the Software without restriction, including without limitation the rights 6303233Sdim * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7303233Sdim * copies of the Software, and to permit persons to whom the Software is 8303233Sdim * furnished to do so, subject to the following conditions: 9303233Sdim * 10303233Sdim * The above copyright notice and this permission notice shall be included in 11303233Sdim * all copies or substantial portions of the Software. 12303233Sdim * 13303233Sdim * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14303233Sdim * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15303233Sdim * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16303233Sdim * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17303233Sdim * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18303233Sdim * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19303233Sdim * THE SOFTWARE. 20303233Sdim * 21303233Sdim *===-----------------------------------------------------------------------=== 22303233Sdim */ 23303233Sdim 24303233Sdim#ifndef __IMMINTRIN_H 25303233Sdim#error "Never use <clflushoptintrin.h> directly; include <immintrin.h> instead." 26303233Sdim#endif 27303233Sdim 28303233Sdim#ifndef __CLFLUSHOPTINTRIN_H 29303233Sdim#define __CLFLUSHOPTINTRIN_H 30303233Sdim 31303233Sdim/* Define the default attributes for the functions in this file. */ 32303233Sdim#define __DEFAULT_FN_ATTRS __attribute__((__always_inline__, __nodebug__, __target__("clflushopt"))) 33303233Sdim 34303233Sdimstatic __inline__ void __DEFAULT_FN_ATTRS 35327952Sdim_mm_clflushopt(void const * __m) { 36303233Sdim __builtin_ia32_clflushopt(__m); 37303233Sdim} 38303233Sdim 39303233Sdim#undef __DEFAULT_FN_ATTRS 40303233Sdim 41303233Sdim#endif 42