1 | # Bignum addition and subtraction
|
2 |
|
3 |
|
4 |
|
5 | #static unsigned int *addf(unsigned int *, unsigned int *)
|
6 | #static unsigned int *subf(unsigned int *, unsigned int *)
|
7 | #static int ucmp(unsigned int *, unsigned int *)
|
8 |
|
9 | madd = (a, b) ->
|
10 |
|
11 | return a.add b
|
12 |
|
13 | msub = (a, b) ->
|
14 | return a.subtract b
|
15 |
|
16 | addf = (a, b) ->
|
17 |
|
18 | return a.add b
|
19 |
|
20 | subf = (a, b) ->
|
21 | return a.subtract b
|
22 |
|
23 | # unsigned compare
|
24 |
|
25 | ucmp = (a,b) ->
|
26 | return a.compareAbs b
|
27 |
|