mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-19 18:07:10 +07:00
50acfb2b76
Based on 1 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license as published by the free software foundation version 2 this program is distributed in the hope that it will be useful but without any warranty without even the implied warranty of merchantability or fitness for a particular purpose see the gnu general public license for more details extracted by the scancode license scanner the SPDX license identifier GPL-2.0-only has been chosen to replace the boilerplate/reference in 97 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Allison Randal <allison@lohutok.net> Reviewed-by: Alexios Zavras <alexios.zavras@intel.com> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190529141901.025053186@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
38 lines
507 B
ArmAsm
38 lines
507 B
ArmAsm
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (C) 2018 Free Software Foundation, Inc.
|
|
*/
|
|
|
|
#include <linux/linkage.h>
|
|
|
|
ENTRY(__lshrti3)
|
|
beqz a2, .L1
|
|
li a5,64
|
|
sub a5,a5,a2
|
|
addi sp,sp,-16
|
|
sext.w a4,a5
|
|
blez a5, .L2
|
|
sext.w a2,a2
|
|
sll a4,a1,a4
|
|
srl a0,a0,a2
|
|
srl a1,a1,a2
|
|
or a0,a0,a4
|
|
sd a1,8(sp)
|
|
sd a0,0(sp)
|
|
ld a0,0(sp)
|
|
ld a1,8(sp)
|
|
addi sp,sp,16
|
|
ret
|
|
.L1:
|
|
ret
|
|
.L2:
|
|
negw a4,a4
|
|
srl a1,a1,a4
|
|
sd a1,0(sp)
|
|
sd zero,8(sp)
|
|
ld a0,0(sp)
|
|
ld a1,8(sp)
|
|
addi sp,sp,16
|
|
ret
|
|
ENDPROC(__lshrti3)
|