13 lines · plain
1#define WIN32_LEAN_AND_MEAN2#include <windows.h>3#include <processthreadsapi.h>4 5#ifndef PF_ARM_V81_ATOMIC_INSTRUCTIONS_AVAILABLE6#define PF_ARM_V81_ATOMIC_INSTRUCTIONS_AVAILABLE 347#endif8 9static void CONSTRUCTOR_ATTRIBUTE init_have_lse_atomics(void) {10 if (IsProcessorFeaturePresent(PF_ARM_V81_ATOMIC_INSTRUCTIONS_AVAILABLE))11 __aarch64_have_lse_atomics = true;12}13