Go to file
2024-02-20 22:53:57 +08:00
README.md Update README.md 2024-02-20 22:53:57 +08:00

ruapu

detect cpu isa features with single-file

CPU arch x86, x86-64
arm, aarch64
#define RUAPU_IMPLEMENTATION
#include "ruapu.h"

int main()
{
    // initialize ruapu once
    ruapu_cpu_init();

    // now, tell me if this cpu has avx2
    int has_avx2 = ruapu_cpu_supports("avx2");

    return 0;
}
OS Windows
Linux
macOS
Android
iOS
Compiler GCC
Clang
MSVC