Mercurial > dropbear
comparison bn_mp_mul_d.c @ 190:d8254fc979e9 libtommath-orig LTM_0.35
Initial import of libtommath 0.35
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Fri, 06 May 2005 08:59:30 +0000 |
parents | d29b64170cf0 |
children |
comparison
equal
deleted
inserted
replaced
142:d29b64170cf0 | 190:d8254fc979e9 |
---|---|
55 | 55 |
56 /* send carry into next iteration */ | 56 /* send carry into next iteration */ |
57 u = (mp_digit) (r >> ((mp_word) DIGIT_BIT)); | 57 u = (mp_digit) (r >> ((mp_word) DIGIT_BIT)); |
58 } | 58 } |
59 | 59 |
60 /* store final carry [if any] */ | 60 /* store final carry [if any] and increment ix offset */ |
61 *tmpc++ = u; | 61 *tmpc++ = u; |
62 ++ix; | |
62 | 63 |
63 /* now zero digits above the top */ | 64 /* now zero digits above the top */ |
64 while (ix++ < olduse) { | 65 while (ix++ < olduse) { |
65 *tmpc++ = 0; | 66 *tmpc++ = 0; |
66 } | 67 } |