The new source is a port of the RVCT version.
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Leif Lindholm <leif.lindholm@linaro.org>
Signed-off-by: Pete Batard <pete@akeo.ie>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
--- /dev/null
+#------------------------------------------------------------------------------\r
+#\r
+# Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
+#\r
+# SPDX-License-Identifier: BSD-2-Clause-Patent\r
+#\r
+#------------------------------------------------------------------------------\r
+\r
+#include <AsmMacroIoLib.h>\r
+\r
+#\r
+#UINT64\r
+#EFIAPI\r
+#__aeabi_lasr (\r
+# IN UINT64 Value\r
+# IN UINT32 Shift\r
+# );\r
+#\r
+ASM_FUNC(__aeabi_lasr)\r
+ subs r3,r2,#0x20\r
+ bpl L_Test\r
+ rsb r3,r2,#0x20\r
+ lsr r0,r0,r2\r
+ orr r0,r0,r1,LSL r3\r
+ asr r1,r1,r2\r
+ bx lr\r
+L_Test:\r
+ asr r0,r1,r3\r
+ asr r1,r1,#31\r
+ bx lr\r
Arm/sourcery.S | GCC\r
Arm/uldiv.S | GCC\r
Arm/ldivmod.S | GCC\r
+ Arm/lasr.S | GCC\r
Arm/llsr.S | GCC\r
Arm/llsl.S | GCC\r
\r