aboutsummaryrefslogtreecommitdiff
path: root/libxcb/src/xcb_util.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2010-12-25 14:33:36 +0000
committermarha <marha@users.sourceforge.net>2010-12-25 14:33:36 +0000
commit311ab924cacb3353066bf25f23208a315ac06b9d (patch)
tree4562209dc2dba361da4eb3bb7bea923d892f1a48 /libxcb/src/xcb_util.c
parent0412ee015982ea1ab7cbe353f20b24530d2d8048 (diff)
parentc6539c9f45372fb6518bff17a781effd654bd3f0 (diff)
downloadvcxsrv-311ab924cacb3353066bf25f23208a315ac06b9d.tar.gz
vcxsrv-311ab924cacb3353066bf25f23208a315ac06b9d.tar.bz2
vcxsrv-311ab924cacb3353066bf25f23208a315ac06b9d.zip
svn merge ^/branches/released .
Diffstat (limited to 'libxcb/src/xcb_util.c')
-rw-r--r--libxcb/src/xcb_util.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libxcb/src/xcb_util.c b/libxcb/src/xcb_util.c
index ba16734f0..538fdf460 100644
--- a/libxcb/src/xcb_util.c
+++ b/libxcb/src/xcb_util.c
@@ -66,6 +66,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)
{