steinwurf / cpuid

C++ library for detecting CPU capabilities
https://cpuid.steinwurf.com
Other
105 stars 21 forks source link

Portable Header File for CPU Features Detection #37

Closed RoyiAvital closed 6 years ago

RoyiAvital commented 6 years ago

Hello,

Could you offer a version of h file (Even in C) for detection of CPU features? Something which expose simple functions like hasSSE3(), hasSSE4(), hasAVX(), hasAVX2(), etc...

Thank You.

mortenvp commented 6 years ago

Hi @RoyiAvital are you thinking about a header-only version of the library. Or bindings for the library to expose it's functionality to C?

RoyiAvital commented 6 years ago

Either way. But just having the functionality withing the IDE without the need to build a library and link it.

mortenvp commented 6 years ago

@RoyiAvital Making the library header only atm. is not easy since we have other dependencies that would then be exposed. Is there some reason you prefer not to use it as a shared/static lib?

mortenvp commented 6 years ago

Closing this issue - feel free to (re)open again with new questions.