Skip to content

Commit dc06877

Browse files
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 2e01aa0. 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.
1 parent 447bc0d commit dc06877

File tree

144 files changed

+1035
-2087
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

144 files changed

+1035
-2087
lines changed

CMakeLists.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,7 @@ if(${CMAKE_SYSTEM_NAME} STREQUAL "DragonFly" OR ${CMAKE_SYSTEM_NAME} STREQUAL "N
3131
find_package(Threads REQUIRED)
3232
endif()
3333

34-
# check if popcount64 is available
3534
include(CheckSymbolExists)
36-
check_symbol_exists(popcount64 "string.h" HAVE_POPCOUNT64)
37-
if(HAVE_POPCOUNT64)
38-
add_definitions(-DHAVE_POPCOUNT64)
39-
endif(HAVE_POPCOUNT64)
4035

4136
# check if auxiliary vector is available
4237
if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")

configure.ac

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ LT_INIT
5151
AM_CPPFLAGS="$CPPFLAGS"
5252

5353
AC_CHECK_HEADERS([stdint.h])
54-
AC_CHECK_FUNCS([popcount64])
5554

5655
AC_CHECK_PROGS([DOXYGEN], [doxygen])
5756
AM_CONDITIONAL([HAVE_DOXYGEN], [test -n "$DOXYGEN"])

libcpuid/Doxyfile.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -990,7 +990,6 @@ RECURSIVE = NO
990990
# run.
991991

992992
EXCLUDE = @top_srcdir@/libcpuid/libcpuid_internal.h \
993-
@top_srcdir@/libcpuid/libcpuid_ctype.h \
994993
@top_srcdir@/libcpuid/libcpuid_util.h
995994

996995
# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or

libcpuid/Makefile.am

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,8 @@ libcpuidinclude_HEADERS = \
3232
libcpuid_types.h
3333

3434
noinst_HEADERS = \
35-
amd_code_t.h \
3635
asm-bits.h \
37-
centaur_code_t.h \
38-
intel_code_t.h \
3936
libcpuid_arm_driver.h \
40-
libcpuid_ctype.h \
4137
libcpuid_internal.h \
4238
libcpuid_util.h \
4339
recog_amd.h \

libcpuid/amd_code_t.h

Lines changed: 0 additions & 40 deletions
This file was deleted.

libcpuid/centaur_code_t.h

Lines changed: 0 additions & 32 deletions
This file was deleted.

libcpuid/check-consistency.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def checkEnumSize(enumName, constantName):
160160
# - Codenames should not exceed 31 characters
161161
# - Check for common typos
162162
definitions = 0
163-
match_entry_fields = 12 # this number needs to change if the definition of match_entry_t ever changes
163+
match_entry_fields = 11 # this number needs to change if the definition of match_entry_t ever changes
164164
codename_str_max = 64-1 # this number needs to change if the value of CODENAME_STR_MAX ever changes
165165
common_cache_sizes = ["8", "16", "32", "64", "128", "256", "512", "1024", "2048", "3072", "4096", "6144", "8192", "12288", "16384"]
166166
for fn in glob.glob("%s/*.c" % sys.argv[1]):
@@ -177,7 +177,7 @@ def checkEnumSize(enumName, constantName):
177177
if not has_matchtable:
178178
continue
179179
i = line.find("{")
180-
j = line.find("}")
180+
j = line.rfind("}")
181181
if i == -1 or j == -1 or i > j:
182182
continue
183183
inner = line[i+1:j]

libcpuid/intel_code_t.h

Lines changed: 0 additions & 58 deletions
This file was deleted.

libcpuid/libcpuid.dsp

Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libcpuid/libcpuid_ctype.h

Lines changed: 0 additions & 81 deletions
This file was deleted.

0 commit comments

Comments
 (0)