mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-25 20:59:42 +02:00
eeshow/misc/util.h (sign1): return sign of argument, return 1 for 0
This commit is contained in:
parent
76f7f80c88
commit
64ddbc3c61
@ -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__)
|
||||
|
Loading…
Reference in New Issue
Block a user