Adding to a bit array
Posted
by Martin
on Stack Overflow
See other posts from Stack Overflow
or by Martin
Published on 2010-04-26T23:09:51Z
Indexed on
2010/04/26
23:13 UTC
Read the original article
Hit count: 189
In my program, I am using BitArrays to represent 160 bit numbers. I want to be able to add, subtract, increment and decrement these numbers, what is the algorithm for doing this?
At the moment I'm not interested in multiplication and division, but I might be in the future so bonus points for that.
I'm implementing in C#, but pseudocode is fine if you're not familiar with the language
© Stack Overflow or respective owner