Refactor handling of x86 CPUID instructions Introduce two helpers for CPUID, pg_cpuid and pg_cpuid_subleaf that wrap the platform specific __get_cpuid/__cpuid and __get_cpuid_count/__cpuidex functions.
Additionally, use macros to specify registers names (e.g. EAX) for clarity, instead of numeric integers into the result array. Author: Lukas Fittl <[email protected]> Suggested-By: John Naylor <[email protected]> Discussion: https://postgr.es/m/canwcazz+crjt5za9ymfsurrmdw7m4t2mutdezd_3s1gtlnr...@mail.gmail.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/be6a7494d2e387d1f5b7a5dcc6c2afcb403188d6 Modified Files -------------- src/port/pg_cpu_x86.c | 76 ++++++++++++++++++++++++++++++++++----------------- 1 file changed, 51 insertions(+), 25 deletions(-)
