Commit d10cf1e9 authored by Niels Möller's avatar Niels Möller

Added SQR macro.

Rev: src/lsh_types.h:1.26
parent fee926f7
......@@ -75,9 +75,11 @@ do { \
(p)[3] = (i) & 0xff; \
} while(0)
/* Useful macros. */
#define MIN(a, b) (((a)>(b)) ? (b) : (a))
#define MAX(a, b) (((a)>(b)) ? (b) : (a))
#define SQR(x) ((x)*(x))
/* Generic object */
#define LSH_ALLOC_HEAP 0
......
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