Skip to main content
4 of 5
added 59 characters in body

#C (gcc) , 20, 29 17 bytes

@hvd's suggestion.

__builtin_bswap32

Try it online!

Old answer;

#include<byteswap.h>
bswap_32

include should be import.