I'm here today to ask you some wise hints on how I can handle big std::bitset
the right way. Specifically, I have to manage bitset as large as 256 bits (even more eventually), and until I need to perform classical binary operations, I'm not in trouble. The problem arise when I need to perform subtraction between bitsets. Usually, I would translate them with to_ulong()
or to_ullong()
, performing subtraction and re-translate to bitset, but with n_bits > 64bit
things are not easy as before.
So, I'm here to ask you if there's a way to perform subtraction between bitset in another way. I know that it also exist one (or maybe more?) BigNum C++ library, but I am looking for something that could be done without adding external libs. I see the usage of lib as the last possible way to fix this problem.
Thank you!