ardour/libs/pbd
Ayan Shafqat bb31125c94
Fix CPUID to detect AVX512F
CPUID is part of x86_64 ISA to query CPU features. In order to determine
AVX512F ISA extension, EAX and ECX needs to be set to 7 and 0
respectively before invoking `cpuid` instruction. This commit also
removes inline assembly for __cpuid in favor of using compiler provided
intrinsic functions. Both GCC and clang provides __cpuid like function
via __cpuid_count intrinsic.

This commit also creates a portable wrapper over compiler intrinsic
functions, __cpuid and __cpuidex. `cpuid' provides base level ISA query
and `cpuidex` provides extra extension information like AVX512F. These
wrappers lean towards MSVC like API.

References:
CPUID Docs: https://en.wikipedia.org/wiki/CPUID

GCC's ``docs" on __cpuid_count:
https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=gcc/config/i386/cpuid.h

Clang's docs on __cpuid_count:
https://clang.llvm.org/doxygen/cpuid_8h.html

MSVC's docs on __cpuid and __cpuidex:
https://learn.microsoft.com/en-us/cpp/intrinsics/cpuid-cpuidex
2023-02-08 23:20:20 +01:00
..
boost-debug
msvc
MSVCpbd
pbd Add CPU detection 2023-02-04 23:07:17 +01:00
test
base_ui.cc libpbd: do not use debug transmitter inside BaseUI::signal_new_request() to avoid recursion 2022-06-13 13:43:31 -06:00
basename.cc
boost_debug.cc
cartesian.cc
ChangeLog
cocoa_open_uri.mm Use macOS API to open finder at given path 2022-12-08 02:15:29 +01:00
command.cc
configuration_variable.cc continued work on use of Metadata in various Configuration objects (libs edition) 2023-01-27 15:13:27 -07:00
controllable.cc Move ControllableSet up in PBD's namespace 2022-10-18 00:08:21 +02:00
convert.cc add upcase() method; remove upcase version of internationalize() 2023-01-27 15:13:27 -07:00
COPYING
cpus.cc
crossthread.cc Potential fix for M1 x-thread events 2022-05-02 00:02:33 +02:00
crossthread.posix.cc NO-OP: clang-format 2022-04-23 23:12:13 +02:00
crossthread.win.cc
debug_rt_alloc.c
debug.cc
demangle.cc
downloader.cc downloader: create destdir if it does not already exist, throw exception if this fails 2022-09-26 01:10:20 -06:00
enums.cc
enumwriter.cc
epa.cc
error.cc
event_loop.cc
ffs.cc
file_archive.cc threaded archive inflation for library mgmt 2022-09-13 13:53:45 -06:00
file_utils.cc Fix Ardour's rm -r implementation, delete symlinks 2022-11-19 20:20:58 +01:00
fpu.cc Fix CPUID to detect AVX512F 2023-02-08 23:20:20 +01:00
glib_event_source.cc libpbd: change GlibEventLoopCallback to use C API not C++ 2022-05-19 22:24:43 -06:00
id.cc Update core library GPL boilerplate and (C) from git log 2019-08-03 15:53:17 +02:00
inflater.cc libpbd: new threader Inflater and Downlaoder classes 2022-09-13 13:53:45 -06:00
libpbd.pc.in
libpbd.spec.in
locale_guard.cc
localtime_r.cc
malign.cc
md5.cc
microseconds.cc
mountpoint.cc
openuri.cc Use macOS API to open finder at given path 2022-12-08 02:15:29 +01:00
pathexpand.cc
pbd.cc
pcg_rand.cc
pool.cc Only dump SessionEvent pool in debug builds 2022-07-07 22:34:11 +02:00
property_list.cc
pthread_utils.cc Allow to override default stack limit for background processes 2022-11-13 03:01:57 +01:00
reallocpool.cc Fix unused computed values 2022-12-11 11:54:03 -05:00
receiver.cc
resource.cc
run-tests.sh
search_path.cc
semutils.cc Explicitly initialize futex word 2022-11-13 03:01:50 +01:00
shortpath.cc
signals.cc
spinlock.cc
stacktrace.cc miscellaneous fixes for warnings from -Wconversion 2022-07-04 22:01:48 -06:00
stateful_diff_command.cc
stateful.cc Remove unused imports and modernize stateful.cc 2022-05-13 23:07:49 +02:00
string_convert.cc
strreplace.cc
strsplit.cc Update core library GPL boilerplate and (C) from git log 2019-08-03 15:53:17 +02:00
system_exec.cc SystemExec: tweak writing to stdin of child process 2023-01-16 16:39:37 +01:00
textreceiver.cc
timer.cc
timing.cc
tlsf.cc use C style cast in C code, rather than C++ constructor 2022-06-22 13:31:08 -06:00
transmitter.cc
undo.cc
uuid.cc
whitespace.cc Add a missing #include 2022-09-10 10:20:37 +01:00
windows_mmcss.cc
windows_special_dirs.cc
windows_timer_utils.cc
wscript libpbd: new threader Inflater and Downlaoder classes 2022-09-13 13:53:45 -06:00
xml++.cc Fix typos 2022-09-21 19:09:55 -06:00