CVS: rdesktop xwin.c,1.162,1.163
Jay Sorg <[email protected]>
| Newsgroups | gmane.network.rdesktop.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/rdesktop/rdesktop
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7615
Modified Files:
xwin.c
Log Message:
unroll the bits in translate8to16/32
Index: xwin.c
===================================================================
RCS file: /cvsroot/rdesktop/rdesktop/xwin.c,v
retrieving revision 1.162
retrieving revision 1.163
diff -C2 -d -r1.162 -r1.163
*** xwin.c 26 Apr 2004 13:48:39 -0000 1.162
--- xwin.c 26 Apr 2004 23:00:25 -0000 1.163
***************
*** 230,233 ****
--- 230,242 ----
}
+ #define UNROLL8(stm) { stm stm stm stm stm stm stm stm }
+ #define REPEAT(stm) \
+ { \
+ while (out <= end - 8 * 4) \
+ UNROLL8(stm) \
+ while (out < end) \
+ { stm } \
+ }
+
static void
translate8to8(uint8 * data, uint8 * out, uint8 * end)
***************
*** 242,246 ****
uint16 value;
! if (g_xserver_be)
{
while (out < end)
--- 251,257 ----
uint16 value;
! if (g_arch_match)
! REPEAT(*(((uint16*)out)++) = g_colmap[*(data++)];)
! else if (g_xserver_be)
{
while (out < end)
***************
*** 295,299 ****
uint32 value;
! if (g_xserver_be)
{
while (out < end)
--- 306,312 ----
uint32 value;
! if (g_arch_match)
! REPEAT(*(((uint32*)out)++) = g_colmap[*(data++)];)
! else if (g_xserver_be)
{
while (out < end)
-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297