Forum Discussion
Altera_Forum
Honored Contributor
11 years agoGood idea. However, a circular buffer will not work since I'm storing bignums in the array and need to do left/right shift operations over the entire bignum. I've changed the logic to the following by allocating additional memory on both sides of the bignum. This code requires much fewer resources on the FPGA. But this approach requires changes to my left/right shift operations, which are not consuming more resources. Joy.
void expand( struct number *h ){ h->size++; h->msb--; h->rep[h->msb] = 0x01; }