galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
Loading...
Searching...
No Matches
CPUInfo.hpp
Go to the documentation of this file.
1
7
8#ifndef GALAXY_PLATFORM_CPUINFO_HPP_
9#define GALAXY_PLATFORM_CPUINFO_HPP_
10
11#include <cstddef>
12
13namespace galaxy
14{
61
62 namespace platform
63 {
69 CPUInfo get_cpu_info() noexcept;
70 } // namespace platform
71
72} // namespace galaxy
73
74#endif
CPUInfo get_cpu_info() noexcept
Generates CPU info data.
Definition CPUInfo.cpp:14
Application.hpp galaxy.
Data structure containing info about the cpu, such as RAM, cache, SIMD, etc.
Definition CPUInfo.hpp:19
bool has_mmx
Determine whether the CPU has MMX features.
Definition CPUInfo.hpp:45
bool has_sse
Determine whether the CPU has SSE features.
Definition CPUInfo.hpp:49
bool has_avx
Determine whether the CPU has AVX features.
Definition CPUInfo.hpp:35
bool has_sse2
Determine whether the CPU has SSE2 features.
Definition CPUInfo.hpp:51
int system_ram
Returns the amount of RAM configured in the system in MiB.
Definition CPUInfo.hpp:29
std::size_t simd_alignment
This will return the minimum number of bytes to which a pointer must be aligned to be compatible with...
Definition CPUInfo.hpp:27
bool has_avx512f
Determine whether the CPU has AVX-512F (foundation) features.
Definition CPUInfo.hpp:39
bool has_sse41
Determine whether the CPU has SSE41 features.
Definition CPUInfo.hpp:55
bool has_sse3
Determine whether the CPU has SSE3 features.
Definition CPUInfo.hpp:53
bool has_avx2
Determine whether the CPU has AVX2 features.
Definition CPUInfo.hpp:37
int logical_core_count
Get the number of logical CPU cores available.
Definition CPUInfo.hpp:23
bool has_arm_simd
Determine whether the CPU has ARM SIMD (ARMv6) features.
Definition CPUInfo.hpp:33
int system_page_size
Report the size of a page of memory.
Definition CPUInfo.hpp:25
bool has_altivec
Returns true if the CPU has AltiVec features or false if not.
Definition CPUInfo.hpp:31
bool has_neon
Determine whether the CPU has NEON (ARM SIMD) features.
Definition CPUInfo.hpp:47
bool has_sse42
Determine whether the CPU has SSE42 features.
Definition CPUInfo.hpp:57
bool has_lasx
Determine whether the CPU has LASX (LOONGARCH SIMD) features.
Definition CPUInfo.hpp:41
int cpu_cache_line_size
Determine the L1 cache line size of the CPU.
Definition CPUInfo.hpp:21
bool has_lsx
Determine whether the CPU has LSX (LOONGARCH SIMD) features.
Definition CPUInfo.hpp:43
bool has_sve2
Determine whether the CPU has SVE2 (Scalable Vector Extension 2).
Definition CPUInfo.hpp:59