]>
git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/blob - arch/sh/lib/ashrdi3.c
1 // SPDX-License-Identifier: GPL-2.0
2 #include <linux/module.h>
6 long long __ashrdi3(long long u
, word_type b
)
18 /* w.s.high = 1..1 or 0..0 */
21 w
.s
.low
= uu
.s
.high
>> -bm
;
23 const unsigned int carries
= (unsigned int) uu
.s
.high
<< bm
;
25 w
.s
.high
= uu
.s
.high
>> b
;
26 w
.s
.low
= ((unsigned int) uu
.s
.low
>> b
) | carries
;
32 EXPORT_SYMBOL(__ashrdi3
);