/******************************************************************************/
void bigint_copy(bigint_t* dest, const bigint_t* src){
- memcpy(dest->wordv, src->wordv, src->length_B);
dest->length_B = src->length_B;
dest->info = src->info;
+ memcpy(dest->wordv, src->wordv, src->length_B);
}
/******************************************************************************/
/* this should be implemented in assembly */
-/*
void bigint_add_u(bigint_t* dest, const bigint_t* a, const bigint_t* b){
uint16_t t=0, i;
if(a->length_B < b->length_B){
dest->length_B = i;
bigint_adjust(dest);
}
-*/
+
/******************************************************************************/
/* this should be implemented in assembly */
while(bigint_cmp_u(a,r)>=0){
bigint_sub_u(a,a,r);
}
- bigint_adjust(a);
}
/******************************************************************************/