LMMS
Loading...
Searching...
No Matches
Hardware.h File Reference
#include <cstdint>
#include <new>
#include "lmmsconfig.h"
#include <immintrin.h>

Go to the source code of this file.

Namespaces

namespace  lmms

Functions

void lmms::busyWaitHint ()
 Platform-dependent hint to the processor that it is in a busy-wait loop. This helps optimize spinlocks by slowing down the processor a bit, which helps reduce contention on atomics.
void lmms::disableDenormals ()
 Disable IEEE 754 denormals on the current thread.

Variables

constexpr std::size_t lmms::hardware_destructive_interference_size
 Platform-dependent minimum amount of padding between objects to prevent false cache sharing.