1 /*
2  * Copyright (C) 2020-2021 Intel Corporation
3  *
4  * SPDX-License-Identifier: MIT
5  *
6  */
7 
8 #include "shared/source/utilities/cpuintrinsics.h"
9 
10 #if defined(__ARM_ARCH)
11 #include <sse2neon.h>
12 #else
13 #include <emmintrin.h>
14 #endif
15 
16 namespace NEO {
17 namespace CpuIntrinsics {
18 
clFlush(void const * ptr)19 void clFlush(void const *ptr) {
20     _mm_clflush(ptr);
21 }
22 
pause()23 void pause() {
24     _mm_pause();
25 }
26 
27 } // namespace CpuIntrinsics
28 } // namespace NEO
29