projects
/
infodrom
/
dtaus
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c06597
)
Patch by Jens Rohler <jkcr@rohler.de> to bigint_cmp()
author
Joey Schulze
<joey@infodrom.org>
Mon, 22 Aug 2005 19:37:26 +0000
(19:37 +0000)
committer
Joey Schulze
<joey@infodrom.org>
Mon, 22 Aug 2005 19:37:26 +0000
(19:37 +0000)
bigint.h
patch
|
blob
|
history
diff --git
a/bigint.h
b/bigint.h
index
6a7754c
..
6399513
100644
(file)
--- a/
bigint.h
+++ b/
bigint.h
@@
-41,3
+41,11
@@
bigint bigint_int(int num);
bigint bigint_string(char *s);
void bigint_sprintf (char *res, char *format, bigint a);
+
+/* compares two bigints
+ a < b => -1
+ a > b => 1
+ a == b => 0
+*/
+int bigint_cmp(bigint a, bigint b);
+