Skip to content
This repository was archived by the owner on Sep 6, 2023. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions OFS-lib/OFS_Util.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,13 @@
#include "OFS_Profiling.h"
#include "OFS_FileLogging.h"

#if __aarch64__
#include <thread>
#define OFS_PAUSE_INTRIN std::this_thread::yield
#else
#include "emmintrin.h" // for _mm_pause

#define OFS_PAUSE_INTRIN _mm_pause
#endif

// helper for FontAwesome. Version 4.7.0 2016 ttf
#define ICON_FOLDER_OPEN "\xef\x81\xbc"
Expand Down Expand Up @@ -517,4 +521,4 @@ class Util {
static uint32_t RandomColor(float s, float v, float alpha = 1.f) noexcept;
};

#define FMT(fmt, ...) Util::Format(fmt, __VA_ARGS__)
#define FMT(fmt, ...) Util::Format(fmt, __VA_ARGS__)