mirror of
https://github.com/anrieff/libcpuid
synced 2025-10-03 11:01:30 +00:00
Update match_entry_t to remove internal codes and bits
Remove brand_code, model_bits and model_code fields, add a new brand sub-struct.
There fields were complicated to manage, adding complex functions to make it work.
amd_bits_t and intel_bits_t enums were truncated, I had to replace them with #define in 2e01aa0303
.
Some of these #define were conflicting with other C headers (ctype.h on OpenBSD, corecrt_wctype.h on Windows), that is why I wanted to get rid of it.
I updated some CPU codenames meanwhile for more consistency.
Fix #212.
This commit is contained in:
parent
447bc0d8d9
commit
dc06877f4f
144 changed files with 1018 additions and 2070 deletions
|
@ -31,12 +31,7 @@ if(${CMAKE_SYSTEM_NAME} STREQUAL "DragonFly" OR ${CMAKE_SYSTEM_NAME} STREQUAL "N
|
|||
find_package(Threads REQUIRED)
|
||||
endif()
|
||||
|
||||
# check if popcount64 is available
|
||||
include(CheckSymbolExists)
|
||||
check_symbol_exists(popcount64 "string.h" HAVE_POPCOUNT64)
|
||||
if(HAVE_POPCOUNT64)
|
||||
add_definitions(-DHAVE_POPCOUNT64)
|
||||
endif(HAVE_POPCOUNT64)
|
||||
|
||||
# check if auxiliary vector is available
|
||||
if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue