x86: use compiler intrinsics for bswap*
(cherry picked from commit e6ff6154d2034c13f3d0da73c1e00d69fdb36516)