swh:1:snp:c2847dfd741eae21606027cf29250d1ebcd63fb4
Raw File
Tip revision: 4d856f72c10ecb060868ed10ff1b1453943fc6c8 authored by Linus Torvalds on 15 September 2019, 21:19:32 UTC
Linux 5.3
Tip revision: 4d856f7
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