From a125d07e6fcb5b5157e4cb536239afd3916aa39c Mon Sep 17 00:00:00 2001 From: Richard Kreckel Date: Tue, 26 Apr 2022 10:40:09 +0200 Subject: [PATCH] Really use umull insn on ARM V7 and newer. I haven'f found a GCC version which #defines __arm7__, __arm8__, etc. but all modern compilers #define __ARM_ARCH since more than a decade. --- src/base/digitseq/cl_asm_arm_.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/base/digitseq/cl_asm_arm_.cc b/src/base/digitseq/cl_asm_arm_.cc index 00f9a09..769aeb7 100644 --- a/src/base/digitseq/cl_asm_arm_.cc +++ b/src/base/digitseq/cl_asm_arm_.cc @@ -48,10 +48,8 @@ pc .req r15 #define END - - -#if defined(__arm7m__) || defined(__arm8__) || defined(__arm9__) || defined(__strongarm__) - // ARM7M and later have 32x32 -> 64 multiplies which execute in 2-4 clocks. +#if __ARM_ARCH >= 7 + // ARM7 and later have 32x32 -> 64 multiplies which execute in 2-4 clocks. #define HAVE_umull #endif -- 2.44.0