8#ifndef GALAXY_PLATFORM_CPUINFO_HPP_
9#define GALAXY_PLATFORM_CPUINFO_HPP_
Data structure containing info about the cpu, such as RAM, cache, SIMD, etc.
bool has_mmx
Determine whether the CPU has MMX features.
bool has_sse
Determine whether the CPU has SSE features.
bool has_avx
Determine whether the CPU has AVX features.
bool has_sse2
Determine whether the CPU has SSE2 features.
int system_ram
Returns the amount of RAM configured in the system in MiB.
std::size_t simd_alignment
This will return the minimum number of bytes to which a pointer must be aligned to be compatible with...
bool has_avx512f
Determine whether the CPU has AVX-512F (foundation) features.
bool has_sse41
Determine whether the CPU has SSE41 features.
bool has_sse3
Determine whether the CPU has SSE3 features.
bool has_avx2
Determine whether the CPU has AVX2 features.
int logical_core_count
Get the number of logical CPU cores available.
bool has_arm_simd
Determine whether the CPU has ARM SIMD (ARMv6) features.
int system_page_size
Report the size of a page of memory.
bool has_altivec
Returns true if the CPU has AltiVec features or false if not.
bool has_neon
Determine whether the CPU has NEON (ARM SIMD) features.
bool has_sse42
Determine whether the CPU has SSE42 features.
bool has_lasx
Determine whether the CPU has LASX (LOONGARCH SIMD) features.
int cpu_cache_line_size
Determine the L1 cache line size of the CPU.
bool has_lsx
Determine whether the CPU has LSX (LOONGARCH SIMD) features.
bool has_sve2
Determine whether the CPU has SVE2 (Scalable Vector Extension 2).