Use lswap{l,s} in cpswap{l,s}
authorMatt Turner <mattst88@gmail.com>
Tue, 16 Aug 2011 23:12:21 +0000 (19:12 -0400)
committerMatt Turner <mattst88@gmail.com>
Wed, 21 Sep 2011 21:14:44 +0000 (17:14 -0400)
commit889b700e7760ced38bcf5f3aff2d31d3d9a058d7
tree1536d5c1bf0809e07fc1bc4653f5f4167f53ac08
parenta2f0ff5f73db204a9d61e65148b28f6acc5121df
Use lswap{l,s} in cpswap{l,s}

Should be safe since cpswap isn't used on pointers.

           text   data    bss      dec     hex  filename
before: 1875588  52136  78040  2005764  1e9b04  hw/xfree86/Xorg
after:  1872820  52136  78040  2002996  1e9034  hw/xfree86/Xorg

bswap instructions:   5 -> 131 (used in lswapl)
rol instructions:   811 -> 943 (used in lswaps)

Reviewed-by: Peter Harris <pharris@opentext.com>
Signed-off-by: Matt Turner <mattst88@gmail.com>
include/misc.h