mirror of
https://github.com/mstorsjo/fdk-aac.git
synced 2025-06-05 22:39:13 +02:00
Add aarch64 assembly optimization (ARMv8a 64 bits)
The fixmuldiv functions don't need inline assembly to be fast in this architecture; the compiler (both clang and GCC) figure out to use the optimal instructions for this (which is 2 instruction sequence), and when letting the compiler emit the instructions instead of using inline assembly, the compiler is able to interleave those instructions with other instructions, improving scheduling, making it even faster than when using inline assembly. Overall, this gives about 50% speedup.
This commit is contained in:
@ -97,6 +97,9 @@ amm-info@iis.fraunhofer.de
|
||||
#if defined(__arm__)
|
||||
#include "arm/clz_arm.h"
|
||||
|
||||
#elif defined(__aarch64__) || defined(__AARCH64EL__)
|
||||
#include "aarch64/clz_aarch64.h"
|
||||
|
||||
#elif defined(__mips__) /* cppp replaced: elif */
|
||||
#include "mips/clz_mips.h"
|
||||
|
||||
|
Reference in New Issue
Block a user