Post
Topic
Board Development & Technical Discussion
Re: How are you guys representing 256-bit ints in C/C++?
by
larry_vw_1955
on 18/11/2022, 02:09:46 UTC
Actually I think that Cpython is just using GMP internally to power its "long" integer type. So that means it's doable.


In Python 3, there is effectively no limit to how long an integer value can be. Of course, it is constrained by the amount of memory your system has, as are all things, but beyond that an integer can be as long as you need it to be:

that's one thing they got right about python.  Tongue

not sure if they're using the gmp internally or what they're doing but it's nice to know that the only limitations on the size of the number is the amount of ram you have.

java you can use BigInteger class library IF you're into java.

C/C++ seems to be a bit behind the times definitely not going to be crypto friendly if what you're saying is the case. good luck!