Update README.md

This commit is contained in:
nihui 2024-02-20 23:10:06 +08:00 committed by GitHub
parent 3ae3a44c74
commit f4b9089e6d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -11,10 +11,10 @@ detect cpu isa features with single-file
int main()
{
// initialize ruapu once
ruapu_cpu_init();
ruapu_init();
// now, tell me if this cpu has avx2
int has_avx2 = ruapu_cpu_supports("avx2");
int has_avx2 = ruapu_supports("avx2");
return 0;
}