summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-04-11 23:58:53 +0000
committerJeremy Allison <jra@samba.org>2000-04-11 23:58:53 +0000
commit4743965cd9ac87ed7ad22902b2804e26d157c159 (patch)
treebb4ebeffe422331edd2c699482eb166ead301079 /source3/include
parenta110c7ce512d19aaed81375bda9b684994a049a8 (diff)
downloadsamba-4743965cd9ac87ed7ad22902b2804e26d157c159.tar.gz
samba-4743965cd9ac87ed7ad22902b2804e26d157c159.tar.bz2
samba-4743965cd9ac87ed7ad22902b2804e26d157c159.zip
Andrew made it faster :-).
Jeremy. (This used to be commit f2a775d3fb605587d3ce134dec7a895de1fe562a)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/byteorder.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/include/byteorder.h b/source3/include/byteorder.h
index 9d17c0ac51..239d50a66e 100644
--- a/source3/include/byteorder.h
+++ b/source3/include/byteorder.h
@@ -263,7 +263,7 @@ it also defines lots of intermediate macros, just ignore those :-)
tab_depth(depth), base, string, outbuf)); }
/* Alignment macros. */
-#define ALIGN4(p,base) ((p) + ((4 - (PTR_DIFF((p), (base)) % 4)) & 3))
-#define ALIGN2(p,base) ((p) + ((2 - (PTR_DIFF((p), (base)) % 2)) & 1))
+#define ALIGN4(p,base) ((p) + ((4 - (PTR_DIFF((p), (base)) & 3)) & 3))
+#define ALIGN2(p,base) ((p) + ((2 - (PTR_DIFF((p), (base)) & 1)) & 1))
#endif /* _BYTEORDER_H */