https://github.com/torvalds/linux
Revision 156c75737255b8db0aa887abcb66b709856cf453 authored by Christoph Hellwig on 04 May 2020, 12:47:53 UTC, committed by Jens Axboe on 07 May 2020, 14:45:47 UTC
Simplify the bdi name to mirror what we are doing elsewhere, and
drop them name in favor of just using a number.  This avoids a
potentially very long bdi name.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 0b80f98
Raw File
Tip revision: 156c75737255b8db0aa887abcb66b709856cf453 authored by Christoph Hellwig on 04 May 2020, 12:47:53 UTC
vboxsf: don't use the source name in the bdi name
Tip revision: 156c757
lshrdi3.c
// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * lib/lshrdi3.c
 */

#include <linux/module.h>
#include <linux/libgcc.h>

long long notrace __lshrdi3(long long u, word_type b)
{
	DWunion uu, w;
	word_type bm;

	if (b == 0)
		return u;

	uu.ll = u;
	bm = 32 - b;

	if (bm <= 0) {
		w.s.high = 0;
		w.s.low = (unsigned int) uu.s.high >> -bm;
	} else {
		const unsigned int carries = (unsigned int) uu.s.high << bm;

		w.s.high = (unsigned int) uu.s.high >> b;
		w.s.low = ((unsigned int) uu.s.low >> b) | carries;
	}

	return w.ll;
}
EXPORT_SYMBOL(__lshrdi3);
back to top