X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Funaligned.h;h=029452d32a0ed0a276f134565b4e58b940229fd8;hb=210a45284c27bf20626541c96a3a3efb7a00a93c;hp=a3908b0a9e31747ddfa197aee0aaff9b05accfe7;hpb=f484eae8dd0221b738f885f6ee1eaf6130dbe676;p=libucw.git diff --git a/lib/unaligned.h b/lib/unaligned.h index a3908b0a..029452d3 100644 --- a/lib/unaligned.h +++ b/lib/unaligned.h @@ -1,7 +1,10 @@ /* * Sherlock Library -- Fast Access to Unaligned Data * - * (c) 1997--2001 Martin Mares + * (c) 1997--2003 Martin Mares + * + * This software may be freely distributed and used according to the terms + * of the GNU Lesser General Public License. */ #ifndef _SHERLOCK_UNALIGNED_H @@ -41,4 +44,9 @@ #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