2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
#ifdef HAVE_XORG_CONFIG_H
|
|
|
|
#include <xorg-config.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <X11/Xmd.h>
|
2010-07-27 13:02:24 -06:00
|
|
|
#include "xaalocal.h"
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
CARD32
|
|
|
|
XAAReverseBitOrder(CARD32 v)
|
|
|
|
{
|
2012-06-10 07:21:05 -06:00
|
|
|
return (((0x01010101 & v) << 7) | ((0x02020202 & v) << 5) |
|
|
|
|
((0x04040404 & v) << 3) | ((0x08080808 & v) << 1) |
|
|
|
|
((0x10101010 & v) >> 1) | ((0x20202020 & v) >> 3) |
|
|
|
|
((0x40404040 & v) >> 5) | ((0x80808080 & v) >> 7));
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|