tegrakernel/kernel/kernel-4.9/arch/mips/lib/bswapsi.c

13 lines
282 B
C
Raw Normal View History

2022-02-16 09:13:02 -06:00
#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);