2014-08-19 15:29:52 +02:00
|
|
|
//------------------------------------------------------------------------------
|
2013-01-25 12:28:06 +01:00
|
|
|
//
|
|
|
|
// Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
|
2018-01-12 14:33:29 +01:00
|
|
|
// Copyright (c) 2018, Pete Batard. All rights reserved.<BR>
|
2013-01-25 12:28:06 +01:00
|
|
|
//
|
2019-04-04 01:03:18 +02:00
|
|
|
// SPDX-License-Identifier: BSD-2-Clause-Patent
|
2013-01-25 12:28:06 +01:00
|
|
|
//
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
2018-01-12 14:33:29 +01:00
|
|
|
EXPORT __aeabi_llsr
|
|
|
|
EXPORT __rt_srsh
|
2013-01-25 12:28:06 +01:00
|
|
|
|
2018-01-12 14:33:29 +01:00
|
|
|
AREA s___aeabi_llsr, CODE, READONLY, ARM
|
2013-01-25 12:28:06 +01:00
|
|
|
|
2018-01-12 14:33:29 +01:00
|
|
|
ARM
|
2013-01-25 12:28:06 +01:00
|
|
|
|
|
|
|
;
|
|
|
|
;VOID
|
|
|
|
;EFIAPI
|
|
|
|
;__aeabi_llsr (
|
2018-01-12 14:33:29 +01:00
|
|
|
; IN UINT64 Value,
|
|
|
|
; IN UINT32 Shift
|
|
|
|
;)
|
2013-01-25 12:28:06 +01:00
|
|
|
;
|
2018-01-12 14:33:29 +01:00
|
|
|
__aeabi_llsr
|
|
|
|
__rt_srsh
|
2013-01-25 12:28:06 +01:00
|
|
|
SUBS r3,r2,#0x20
|
2018-01-12 14:33:29 +01:00
|
|
|
BPL __aeabi_llsr_label1
|
2013-01-25 12:28:06 +01:00
|
|
|
RSB r3,r2,#0x20
|
|
|
|
LSR r0,r0,r2
|
|
|
|
ORR r0,r0,r1,LSL r3
|
|
|
|
LSR r1,r1,r2
|
|
|
|
BX lr
|
2018-01-12 14:33:29 +01:00
|
|
|
__aeabi_llsr_label1
|
2013-01-25 12:28:06 +01:00
|
|
|
LSR r0,r1,r3
|
|
|
|
MOV r1,#0
|
|
|
|
BX lr
|
|
|
|
|
|
|
|
END
|