2019-08-07 12:58:28 +08:00
|
|
|
/*
|
2020-01-14 20:52:06 +08:00
|
|
|
* Copyright (C) 2019-2020 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
|
|
|
|
|
|
|
#include <emmintrin.h>
|
|
|
|
|
|
|
|
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
|