25 lines
350 B
C++
25 lines
350 B
C++
/*
|
|
* Copyright (C) 2020-2021 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "shared/source/utilities/cpuintrinsics.h"
|
|
|
|
#include <emmintrin.h>
|
|
|
|
namespace NEO {
|
|
namespace CpuIntrinsics {
|
|
|
|
void clFlush(void const *ptr) {
|
|
_mm_clflush(ptr);
|
|
}
|
|
|
|
void pause() {
|
|
_mm_pause();
|
|
}
|
|
|
|
} // namespace CpuIntrinsics
|
|
} // namespace NEO
|