From c08136b69667d1dcabefce6518e689720b7eec42 Mon Sep 17 00:00:00 2001 From: dp111 <19616418+dp111@users.noreply.github.com> Date: Wed, 11 Aug 2021 15:24:23 +0100 Subject: [PATCH] Move ret_dzero to the same section as it get used (#513) --- src/rp2_common/pico_double/double_v1_rom_shim.S | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/rp2_common/pico_double/double_v1_rom_shim.S b/src/rp2_common/pico_double/double_v1_rom_shim.S index a8db6b7..a9b59cd 100644 --- a/src/rp2_common/pico_double/double_v1_rom_shim.S +++ b/src/rp2_common/pico_double/double_v1_rom_shim.S @@ -1218,11 +1218,6 @@ double_section dcordic_rot_step mov r9,r3 bx r14 -ret_dzero: - movs r0,#0 - movs r1,#0 - bx r14 - @ convert packed double in r0:r1 to signed/unsigned 32/64-bit integer/fixed-point value in r0:r1 [with r2 places after point], with rounding towards -Inf @ fixed-point versions only work with reasonable values in r2 because of the way dunpacks works @@ -1264,7 +1259,7 @@ regular_func double2fix64_shim eors r1,r1,r0 @ generate extreme fixed-point values pop {r15} -double_section double2uint64_shim +double_section double2uint64_shim regular_func double2uint64_shim movs r2,#0 @ and fall through regular_func double2ufix64_shim @@ -1288,7 +1283,12 @@ d2fix: asrs r3,r1,#31 ldr r4, =d2fix_a bx r4 - + +ret_dzero: + movs r0,#0 + movs r1,#0 + bx r14 + .weak d2fix_a // weak because it exists in float code too regular_func d2fix_a @ here @@ -2181,4 +2181,4 @@ dtab_exp: .word 0x40000000, 0x00000000 @ log 1+2^-32 Q62 -#endif \ No newline at end of file +#endif