| Paul Gortmaker | 527581b | 2016-08-21 15:58:15 -0400 | [diff] [blame] | 1 | #include <linux/export.h> |
| 2 | #include <linux/compiler.h> | ||||
| Ralf Baechle | 1ee3630 | 2015-09-29 12:19:48 +0200 | [diff] [blame] | 3 | |
| Harvey Hunt | aedcfbe | 2016-05-25 11:06:35 +0100 | [diff] [blame] | 4 | unsigned int notrace __bswapsi2(unsigned int u) |
| Ralf Baechle | 1ee3630 | 2015-09-29 12:19:48 +0200 | [diff] [blame] | 5 | { |
| 6 | return (((u) & 0xff000000) >> 24) | | ||||
| 7 | (((u) & 0x00ff0000) >> 8) | | ||||
| 8 | (((u) & 0x0000ff00) << 8) | | ||||
| 9 | (((u) & 0x000000ff) << 24); | ||||
| 10 | } | ||||
| 11 | |||||
| 12 | EXPORT_SYMBOL(__bswapsi2); | ||||