2019-08-07 12:58:28 +08:00
|
|
|
/*
|
2021-05-17 02:51:16 +08:00
|
|
|
* Copyright (C) 2020-2021 Intel Corporation
|
2019-08-07 12:58:28 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2020-02-24 05:44:01 +08:00
|
|
|
#include "shared/source/utilities/cpuintrinsics.h"
|
2019-08-07 12:58:28 +08:00
|
|
|
|
2021-09-03 05:25:03 +08:00
|
|
|
#if defined(__ARM_ARCH)
|
|
|
|
#include <sse2neon.h>
|
|
|
|
#else
|
2019-08-07 12:58:28 +08:00
|
|
|
#include <emmintrin.h>
|
2021-09-03 05:25:03 +08:00
|
|
|
#endif
|
2019-08-07 12:58:28 +08:00
|
|
|
|
|
|
|
namespace NEO {
|
|
|
|
namespace CpuIntrinsics {
|
|
|
|
|
|
|
|
void clFlush(void const *ptr) {
|
|
|
|
_mm_clflush(ptr);
|
|
|
|
}
|
|
|
|
|
2020-01-14 20:52:06 +08:00
|
|
|
void pause() {
|
|
|
|
_mm_pause();
|
|
|
|
}
|
|
|
|
|
2019-08-07 12:58:28 +08:00
|
|
|
} // namespace CpuIntrinsics
|
|
|
|
} // namespace NEO
|