Update README.md
This commit is contained in:
parent
2d6e09dedf
commit
3ae3a44c74
20
README.md
20
README.md
@ -2,7 +2,25 @@
|
|||||||
detect cpu isa features with single-file
|
detect cpu isa features with single-file
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<tr><td>CPU arch</td><td> ✅ x86, x86-64<br/>✅ arm, aarch64</td></tr>
|
<tr><td>CPU arch</td><td> ✅ x86, x86-64<br/>✅ arm, aarch64</td><td rowspan=3>
|
||||||
|
|
||||||
|
```c
|
||||||
|
#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;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
</td></tr>
|
||||||
<tr><td>OS</td><td>✅ Windows<br/>✅ Linux<br/>✅ macOS<br/>✅ Android<br/>✅ iOS</td></tr>
|
<tr><td>OS</td><td>✅ Windows<br/>✅ Linux<br/>✅ macOS<br/>✅ Android<br/>✅ iOS</td></tr>
|
||||||
<tr><td>Compiler</td><td>✅ GCC<br/>✅ Clang<br/>✅ MSVC</td></tr>
|
<tr><td>Compiler</td><td>✅ GCC<br/>✅ Clang<br/>✅ MSVC</td></tr>
|
||||||
</table>
|
</table>
|
||||||
|
Loading…
Reference in New Issue
Block a user