https://github.com/torvalds/linux
Raw File
Tip revision: 009c9aa5be652675a06d5211e1640e02bbb1c33d authored by Linus Torvalds on 13 June 2021, 21:43:10 UTC
Linux 5.13-rc6
Tip revision: 009c9aa
bswapsi.c
// SPDX-License-Identifier: GPL-2.0
#include <linux/export.h>
#include <linux/compiler.h>

unsigned int notrace __bswapsi2(unsigned int u)
{
	return (((u) & 0xff000000) >> 24) |
	       (((u) & 0x00ff0000) >>  8) |
	       (((u) & 0x0000ff00) <<  8) |
	       (((u) & 0x000000ff) << 24);
}

EXPORT_SYMBOL(__bswapsi2);
back to top