blob: 106fd978317d3b35740e62f4f0f00979011b050e [file] [log] [blame]
Paul Gortmaker527581b2016-08-21 15:58:15 -04001#include <linux/export.h>
2#include <linux/compiler.h>
Ralf Baechle1ee36302015-09-29 12:19:48 +02003
Harvey Huntaedcfbe2016-05-25 11:06:35 +01004unsigned int notrace __bswapsi2(unsigned int u)
Ralf Baechle1ee36302015-09-29 12:19:48 +02005{
6 return (((u) & 0xff000000) >> 24) |
7 (((u) & 0x00ff0000) >> 8) |
8 (((u) & 0x0000ff00) << 8) |
9 (((u) & 0x000000ff) << 24);
10}
11
12EXPORT_SYMBOL(__bswapsi2);