1 |
/* |
/* |
2 |
rdesktop: A Remote Desktop Protocol client. |
rdesktop: A Remote Desktop Protocol client. |
3 |
Bitmap decompression routines |
Bitmap decompression routines |
4 |
Copyright (C) Matthew Chapman 1999-2002 |
Copyright (C) Matthew Chapman 1999-2005 |
5 |
|
|
6 |
This program is free software; you can redistribute it and/or modify |
This program is free software; you can redistribute it and/or modify |
7 |
it under the terms of the GNU General Public License as published by |
it under the terms of the GNU General Public License as published by |
38 |
#define CVAL2(p, v) { v = (*(p++)) << 8; v |= (*(p++)); } |
#define CVAL2(p, v) { v = (*(p++)) << 8; v |= (*(p++)); } |
39 |
#endif /* L_ENDIAN */ |
#endif /* L_ENDIAN */ |
40 |
#else |
#else |
41 |
#define CVAL2(p, v) v = (*(((uint16*)p)++)); |
#define CVAL2(p, v) { v = (*((uint16*)p)); p += 2; } |
42 |
#endif /* NEED_ALIGN */ |
#endif /* NEED_ALIGN */ |
43 |
|
|
44 |
#define UNROLL8(exp) { exp exp exp exp exp exp exp exp } |
#define UNROLL8(exp) { exp exp exp exp exp exp exp exp } |