From ed102088d4f50d7217356089b967d464548aef83 Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Tue, 21 Jun 2016 16:41:56 +0900 Subject: [PATCH] bx lr is faster than mov pc, lr --- src/low_armv7.s | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/low_armv7.s b/src/low_armv7.s index 61d4d94..5fa2f90 100644 --- a/src/low_armv7.s +++ b/src/low_armv7.s @@ -17,9 +17,9 @@ mcl_fp_addNC64: # slow .align 2 mcl_fp_addNC64_2: - ldm r1, {r3, r12} - ldm r2, {r1, r2} + ldm r1, {r3, r12} + ldm r2, {r1, r2} adds r1, r1, r3 - adc r2, r2, r12 - stm r0, {r1, r2} - mov pc, lr + adc r2, r2, r12 + stm r0, {r1, r2} + bx lr