mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-13 18:00:44 +02:00
Every time we are calling a function in `FEXCore::Allocator::` this is a pointer indirection. Which means on x86 it is always a `call [rdi]` and on AArch64 it is a `ldr x17, [x0]; blr x17;`. Instead of doing this, use inline functions in the header that call the correct allocation function directly. This function gets inlined and is no longer an indirect call. When compiling with jemalloc, we forward declare the jemalloc function definitions so we don't have to pull in the entire jemalloc interface in to the public header definitions.