xref: /linux/arch/mips/lib/bswapsi.c (revision eb35cf47c386fa2088580ff4f450abe8a6f9402e)
1 #include <linux/module.h>
2 
3 unsigned int __bswapsi2(unsigned int u)
4 {
5 	return (((u) & 0xff000000) >> 24) |
6 	       (((u) & 0x00ff0000) >>  8) |
7 	       (((u) & 0x0000ff00) <<  8) |
8 	       (((u) & 0x000000ff) << 24);
9 }
10 
11 EXPORT_SYMBOL(__bswapsi2);
12