Commit b564105f authored by Niels Möller's avatar Niels Möller
Browse files

* src/lsh_types.h (READ_UINT24): New macro.

Rev: src/lsh_types.h:1.41
parent 3f596921
......@@ -129,6 +129,12 @@ do { \
(p)[3] = (i) & 0xff; \
} while(0)
/* Same, for 24-bit quantities */
#define READ_UINT24(p) \
((((UINT32) (p)[0]) << 24) \
| (((UINT32) (p)[1]) << 16) \
| ((UINT32) (p)[2]))
/* Same, for 16-bit quantities */
#define READ_UINT16(p) \
((((UINT32) (p)[0]) << 16) \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment