diff options
author | marha <marha@users.sourceforge.net> | 2010-12-24 12:41:29 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2010-12-24 12:41:29 +0000 |
commit | c6539c9f45372fb6518bff17a781effd654bd3f0 (patch) | |
tree | 630e613884689bcab0809125ce0fbb72261b5335 /libxcb/src/xcb_util.c | |
parent | 8fd06c45853cb2300105db84e4b722f0e2dad8d2 (diff) | |
download | vcxsrv-c6539c9f45372fb6518bff17a781effd654bd3f0.tar.gz vcxsrv-c6539c9f45372fb6518bff17a781effd654bd3f0.tar.bz2 vcxsrv-c6539c9f45372fb6518bff17a781effd654bd3f0.zip |
xorg-server libx11 libxcb git update 24/12/2010
Diffstat (limited to 'libxcb/src/xcb_util.c')
-rw-r--r-- | libxcb/src/xcb_util.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libxcb/src/xcb_util.c b/libxcb/src/xcb_util.c index 87de34226..6e635f931 100644 --- a/libxcb/src/xcb_util.c +++ b/libxcb/src/xcb_util.c @@ -62,6 +62,16 @@ int xcb_popcount(uint32_t mask) return ((y + (y >> 3)) & 030707070707) % 077;
}
+int xcb_sumof(uint8_t *list, int len)
+{
+ int i, s = 0;
+ for(i=0; i<len; i++) {
+ s += *list;
+ list++;
+ }
+ return s;
+}
+
static int _xcb_parse_display(const char *name, char **host, char **protocol,
int *displayp, int *screenp)
{
|