mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2025-04-21 12:27:27 +03:00
eeshow/misc/util.h (sign1): return sign of argument, return 1 for 0
This commit is contained in:
1 parent
76f7f80c88
commit
64ddbc3c61
1 file changed
+1
@@ -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__)
|
||||
|
||||
Reference in new issue
Block a user