diff --git a/eeshow/misc/util.h b/eeshow/misc/util.h index d0c5610..657c6d0 100644 --- a/eeshow/misc/util.h +++ b/eeshow/misc/util.h @@ -46,6 +46,7 @@ #define swap(a, b) \ ({ typeof(a) _tmp = (a); a = (b); b = _tmp; }) +#define sign1(x) ((x) < 0 ? -1 : 1) #define unsupported(s) \ fprintf(stderr, __FILE__ ":%d: unsupported: " s "\n", __LINE__)