Guest User

Untitled

a guest
Jun 23rd, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. /* From /usr/include/utils.h on GNU/Linux */
  2.  
  3. static inline int32_t swap32(int32_t x){
  4. return((((u_int32_t)x & 0x000000ffU) << 24) |
  5. (((u_int32_t)x & 0x0000ff00U) << 8) |
  6. (((u_int32_t)x & 0x00ff0000U) >> 8) |
  7. (((u_int32_t)x & 0xff000000U) >> 24));
  8. }
Add Comment
Please, Sign In to add comment