From 1d686c3a23f3ae286ef964ab62199be96e4ad1dc Mon Sep 17 00:00:00 2001 From: Lexyan Date: Sat, 3 Sep 2016 15:38:08 +0200 Subject: 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. --- libFDK/include/fixmul.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libFDK/include/fixmul.h') diff --git a/libFDK/include/fixmul.h b/libFDK/include/fixmul.h index 39b8d6c..ab978c9 100644 --- a/libFDK/include/fixmul.h +++ b/libFDK/include/fixmul.h @@ -98,6 +98,9 @@ amm-info@iis.fraunhofer.de #if defined(__arm__) #include "arm/fixmul_arm.h" +#elif defined(__aarch64__) || defined(__AARCH64EL__) +#include "aarch64/fixmul_aarch64.h" + #elif defined(__mips__) /* cppp replaced: elif */ #include "mips/fixmul_mips.h" -- cgit v1.2.3