]> mj.ucw.cz Git - libucw.git/blobdiff - lib/unaligned.h
introduced type bitarray_t
[libucw.git] / lib / unaligned.h
index 7f8c417a0937a61745e20cf1a1ada82db2d78f81..029452d32a0ed0a276f134565b4e58b940229fd8 100644 (file)
@@ -1,7 +1,7 @@
 /*
  *     Sherlock Library -- Fast Access to Unaligned Data
  *
 /*
  *     Sherlock Library -- Fast Access to Unaligned Data
  *
- *     (c) 1997--2001 Martin Mares <mj@ucw.cz>
+ *     (c) 1997--2003 Martin Mares <mj@ucw.cz>
  *
  *     This software may be freely distributed and used according to the terms
  *     of the GNU Lesser General Public License.
  *
  *     This software may be freely distributed and used according to the terms
  *     of the GNU Lesser General Public License.
@@ -44,4 +44,9 @@
 #define PUT_U40(p,x) do { (p)[4] = ((x) >> 32); PUT_U32(p, x); } while(0)
 #endif
 
 #define PUT_U40(p,x) do { (p)[4] = ((x) >> 32); PUT_U32(p, x); } while(0)
 #endif
 
+/* Just for completeness */
+
+#define GET_U8(p) (*(byte *)(p))
+#define PUT_U8(p,x) *((byte *)(p)) = (x)
+
 #endif
 #endif