Hello, I have to implement some bignum arithmetics. The number has to be split into a list of 16 bit integers.
That is not the problem. The problem is to parse a string into this notation. If it would be a single integer, i would go through the string backwards, get the number out of the char and would add <number>*10^stringposition. (last char has stringposition 1 in this example)
But the bignum should not have multiplication and I thing there should be a smarter faster way. (A int multiplication is O(1); a bignum multiplication not)
How to do it?
(I can not use a complete library like gmp)