mirror of
https://github.com/open-goal/jak-project
synced 2026-08-18 21:57:54 -04:00
bfc4c18ada
- Adds `capstone` as a disassembling library that could eventually replace Zydis (for now left that alone) - Replicates all of the existing x86 tests to ARM64, fixed a bunch of underlying issues along the way - There are a very small handful of tests remaining that need to be enabled / fixed
23 lines
360 B
C++
23 lines
360 B
C++
#pragma once
|
|
|
|
#include <cstddef>
|
|
#include <optional>
|
|
#include <string>
|
|
|
|
size_t get_peak_rss();
|
|
void setup_cpu_info();
|
|
|
|
struct CpuInfo {
|
|
bool initialized = false;
|
|
bool has_avx = false;
|
|
bool has_avx2 = false;
|
|
bool has_neon = false;
|
|
|
|
std::string brand;
|
|
std::string model;
|
|
};
|
|
|
|
CpuInfo& get_cpu_info();
|
|
|
|
std::optional<double> get_macos_major_version();
|