]> www.ginac.de Git - cln.git/commitdiff
Really use umull insn on ARM V7 and newer.
authorRichard Kreckel <kreckel@ginac.de>
Tue, 26 Apr 2022 08:40:09 +0000 (10:40 +0200)
committerRichard Kreckel <kreckel@ginac.de>
Tue, 26 Apr 2022 08:40:09 +0000 (10:40 +0200)
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

index 00f9a09abbdc59236e1bd3264f088ba6d87549e5..769aeb70dcf9b035f93608efc2c5a679f972e503 100644 (file)
@@ -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