// SPDX-License-Identifier: GPL-2.0-or-later1/*2*/34#include <linux/export.h>56#include <linux/libgcc.h>78long long notrace __ashldi3(long long u, word_type b)9{10DWunion uu, w;11word_type bm;1213if (b == 0)14return u;1516uu.ll = u;17bm = 32 - b;1819if (bm <= 0) {20w.s.low = 0;21w.s.high = (unsigned int) uu.s.low << -bm;22} else {23const unsigned int carries = (unsigned int) uu.s.low >> bm;2425w.s.low = (unsigned int) uu.s.low << b;26w.s.high = ((unsigned int) uu.s.high << b) | carries;27}2829return w.ll;30}31EXPORT_SYMBOL(__ashldi3);323334