git.samba.org
/
gd
/
samba
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
342cb83
)
Andrew made it faster :-).
author
Jeremy Allison
<jra@samba.org>
Tue, 11 Apr 2000 23:58:55 +0000
(23:58 +0000)
committer
Jeremy Allison
<jra@samba.org>
Tue, 11 Apr 2000 23:58:55 +0000
(23:58 +0000)
Jeremy.
source/include/byteorder.h
patch
|
blob
|
history
diff --git
a/source/include/byteorder.h
b/source/include/byteorder.h
index 5a45e9a012feb5d4190ac394ec5cc8192e1df7e1..5df94d6e68498a71c552c3e8eb141fa95fa7cb28 100644
(file)
--- a/
source/include/byteorder.h
+++ b/
source/include/byteorder.h
@@
-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 */