diff options
author | Wayne Davison <wayned@samba.org> | 2006-12-12 20:17:02 +0000 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2006-12-12 20:17:02 +0000 |
commit | 0a62f5f38237a5b9a10d1c75f4b624c0035431a3 (patch) | |
tree | 2907c548dcee0b86c66569e173776e281f401e22 /rsync.h | |
parent | 234844915e81c9ebc3e95b2e312982d3d1eb59a3 (diff) | |
download | rsync-0a62f5f38237a5b9a10d1c75f4b624c0035431a3.tar.gz rsync-0a62f5f38237a5b9a10d1c75f4b624c0035431a3.tar.bz2 rsync-0a62f5f38237a5b9a10d1c75f4b624c0035431a3.zip |
Added BITS_EQUAL() define.
Diffstat (limited to 'rsync.h')
-rw-r--r-- | rsync.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |