Andrew made it faster :-).
authorJeremy Allison <jra@samba.org>
Tue, 11 Apr 2000 23:58:55 +0000 (23:58 +0000)
committerJeremy Allison <jra@samba.org>
Tue, 11 Apr 2000 23:58:55 +0000 (23:58 +0000)
Jeremy.

source/include/byteorder.h

index 5a45e9a012feb5d4190ac394ec5cc8192e1df7e1..5df94d6e68498a71c552c3e8eb141fa95fa7cb28 100644 (file)
@@ -268,7 +268,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 */