#include <cstring>
#include <string>
#include <cstdint>
#include <cstdlib>
#include <thread>
#include <new>
#include <jau/cpuid.hpp>
#include <jau/byte_util.hpp>
#include <jau/debug.hpp>
#include <jau/os/os_support.hpp>
#include <unistd.h>
Go to the source code of this file.
|
#define | APPEND_BITSTR(U, V, M) append_bitstr(out, M, U::V, #V, comma); |
|
#define | ARM32HWCAP1_ENUM(X, M) |
|
#define | ARM32HWCAP2_ENUM(X, M) |
|
#define | ARM64HWCAP_ENUM(X, M) |
|
#define | CASE_TO_STRING(U, V) case U::V: return #V; |
|
#define | CPUFAMILY_ENUM(X) |
|
◆ APPEND_BITSTR
#define APPEND_BITSTR |
( |
|
U, |
|
|
|
V, |
|
|
|
M |
|
) |
| append_bitstr(out, M, U::V, #V, comma); |
◆ CASE_TO_STRING
#define CASE_TO_STRING |
( |
|
U, |
|
|
|
V |
|
) |
| case U::V: return #V; |
◆ CPUFAMILY_ENUM
#define CPUFAMILY_ENUM |
( |
|
X | ) |
|
◆ ARM32HWCAP1_ENUM
#define ARM32HWCAP1_ENUM |
( |
|
X, |
|
|
|
M |
|
) |
| |
◆ ARM32HWCAP2_ENUM
#define ARM32HWCAP2_ENUM |
( |
|
X, |
|
|
|
M |
|
) |
| |
◆ ARM64HWCAP_ENUM
#define ARM64HWCAP_ENUM |
( |
|
X, |
|
|
|
M |
|
) |
| |
◆ get_cache_line_size()
static bool get_cache_line_size |
( |
size_t & |
l1_share_max, |
|
|
size_t & |
l1_apart_min |
|
) |
| |
|
staticnoexcept |
◆ get_page_size()
static size_t get_page_size |
( |
| ) |
|
|
staticnoexcept |
◆ get_concurrent_thread_count()
static size_t get_concurrent_thread_count |
( |
| ) |
|
|
staticnoexcept |
◆ get_sys_online_core_count()
static size_t get_sys_online_core_count |
( |
| ) |
|
|
staticnoexcept |
◆ get_sys_max_core_count()
static size_t get_sys_max_core_count |
( |
| ) |
|
|
staticnoexcept |
◆ append_bitstr()
template<typename T >
static void append_bitstr |
( |
std::string & |
out, |
|
|
T |
mask, |
|
|
T |
bit, |
|
|
const std::string & |
bitstr, |
|
|
bool & |
comma |
|
) |
| |
|
static |
◆ get_cpu_family()
Returns cpu_family derived from Architectures predefined compiler macros.
Consider using singleton CpuInfo.
Definition at line 245 of file cpuid.cpp.
◆ get_arm32_hwcap()
◆ get_arm64_hwcap()