Overview of cpu_features
devcpu_features is a cross-platform C library (implemented in C99) used to retrieve CPU features, such as available instruction sets, at runtime. It is designed to be:
- Simple and Extensible: Easy to use and easy to add new architectures or features.
- Highly Portable: Uses C99 to ensure compatibility with old compilers and many architectures.
- Sandbox-compatible: Employs strategies to work in environments where
cpuidmight be unavailable or restricted. - Low-level safe: It is thread-safe, performs no memory allocation, and raises no exceptions, making it suitable for use within fundamental libc functions like
mallocormemcpy. - Unit tested.