[PVFS2-CVS] commit by pw in pvfs2/include: pvfs2-encode-stubs.h

CVS commit program cvs at parl.clemson.edu
Fri Oct 29 15:36:05 EDT 2004


Update of /projects/cvsroot/pvfs2/include
In directory parlweb:/tmp/cvs-serv19008/include

Modified Files:
	pvfs2-encode-stubs.h 
Log Message:
align 8-byte alignment primitive


Index: pvfs2-encode-stubs.h
===================================================================
RCS file: /projects/cvsroot/pvfs2/include/pvfs2-encode-stubs.h,v
diff -u -p -u -r1.4 -r1.5
--- pvfs2-encode-stubs.h	19 Oct 2004 15:02:50 -0000	1.4
+++ pvfs2-encode-stubs.h	29 Oct 2004 18:36:05 -0000	1.5
@@ -16,6 +16,13 @@
 #define roundup8(x) (((x)+7) & ~7)
 
 /*
+ * Look at the pointer value, push it up to the next 8 bytes.
+ */
+#define align8(pptr) do { \
+    *(pptr) = ((void *)(((unsigned long)(*(pptr)) + 8) & ~7)); \
+} while(0);
+
+/*
  * Files that want full definitions for the encoding and decoding functions
  * will define this.  They need access to the full source tree.  Most users
  * expect these noop #defines.



More information about the PVFS2-CVS mailing list