arm64: dts: Revert "specify console via command line"
[linux/fpc-iii.git] / arch / microblaze / lib / ashldi3.c
blob4d0f9481bdb71c3db20aad9b0f9795d5d6b291be
1 // SPDX-License-Identifier: GPL-2.0
2 #include <linux/export.h>
4 #include "libgcc.h"
6 long long __ashldi3(long long u, word_type b)
8 DWunion uu, w;
9 word_type bm;
11 if (b == 0)
12 return u;
14 uu.ll = u;
15 bm = 32 - b;
17 if (bm <= 0) {
18 w.s.low = 0;
19 w.s.high = (unsigned int) uu.s.low << -bm;
20 } else {
21 const unsigned int carries = (unsigned int) uu.s.low >> bm;
23 w.s.low = (unsigned int) uu.s.low << b;
24 w.s.high = ((unsigned int) uu.s.high << b) | carries;
27 return w.ll;
29 EXPORT_SYMBOL(__ashldi3);