remove cmsg task, send_messages not called bugfix
[cor.git] / lib / ashldi3.c
blob8e6a69d591808df2adc976dea4f4977032c7b577
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3 */
5 #include <linux/export.h>
7 #include <linux/libgcc.h>
9 long long notrace __ashldi3(long long u, word_type b)
11 DWunion uu, w;
12 word_type bm;
14 if (b == 0)
15 return u;
17 uu.ll = u;
18 bm = 32 - b;
20 if (bm <= 0) {
21 w.s.low = 0;
22 w.s.high = (unsigned int) uu.s.low << -bm;
23 } else {
24 const unsigned int carries = (unsigned int) uu.s.low >> bm;
26 w.s.low = (unsigned int) uu.s.low << b;
27 w.s.high = ((unsigned int) uu.s.high << b) | carries;
30 return w.ll;
32 EXPORT_SYMBOL(__ashldi3);