Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2348449
)
Added BITS_EQUAL() define.
author
Wayne Davison
<wayned@samba.org>
Tue, 12 Dec 2006 20:17:02 +0000
(20:17 +0000)
committer
Wayne Davison
<wayned@samba.org>
Tue, 12 Dec 2006 20:17:02 +0000
(20:17 +0000)
rsync.h
patch
|
blob
|
blame
|
history
diff --git
a/rsync.h
b/rsync.h
index
e5a4019
..
a509242
100644
(file)
--- a/
rsync.h
+++ b/
rsync.h
@@
-70,6
+70,8
@@
#define BITS_SET(val,bits) (((val) & (bits)) == (bits))
#define BITS_SETnUNSET(val,onbits,offbits) (((val) & ((onbits)|(offbits))) == (onbits))
+#define BITS_EQUAL(b1,b2,mask) (((unsigned)(b1) & (unsigned)(mask)) \
+ == ((unsigned)(b2) & (unsigned)(mask)))
/* update this if you make incompatible changes */
#define PROTOCOL_VERSION 30