rpcsx/rpcs3/util/sysinfo.hpp

85 lines
1.1 KiB
C++
Raw Normal View History

#pragma once
2020-12-12 13:01:29 +01:00
#include "util/types.hpp"
#include <string>
namespace utils
{
2017-11-09 18:33:18 +01:00
bool has_ssse3();
bool has_sse41();
2017-11-09 18:33:18 +01:00
bool has_avx();
2017-12-16 01:19:21 +01:00
bool has_avx2();
2017-11-09 18:33:18 +01:00
bool has_rtm();
2017-07-18 19:03:47 +02:00
bool has_tsx_force_abort();
bool has_rtm_always_abort();
2018-06-13 13:54:16 +02:00
bool has_mpx();
bool has_avx512();
2017-12-16 01:19:21 +01:00
bool has_avx512_icl();
bool has_avx512_vnni();
bool has_avx10();
bool has_avx10_512();
u32 avx10_isa_version();
bool has_avx512_256();
bool has_avx512_icl_256();
2018-01-16 12:32:57 +01:00
bool has_xop();
2019-11-14 17:09:34 +01:00
bool has_clwb();
bool has_invariant_tsc();
bool has_fma3();
bool has_fma4();
bool has_fast_vperm2b();
bool has_erms();
bool has_fsrm();
2020-02-20 03:55:25 +01:00
std::string get_cpu_brand();
std::string get_system_info();
std::string get_firmware_version();
std::string get_OS_version();
int get_maxfiles();
bool get_low_power_mode();
ullong get_tsc_freq();
2020-02-20 03:55:25 +01:00
u64 get_total_memory();
u32 get_thread_count();
2020-12-09 19:29:48 +01:00
u32 get_cpu_family();
u32 get_cpu_model();
// A threshold of 0xFFFFFFFF means that the rep movsb is expected to be slow on this platform
u32 get_rep_movsb_threshold();
u64 _get_main_tid();
inline const u64 main_tid = _get_main_tid();
}