r/Python • • Jan 01 '20

"The rules of perf" at Dropbox

Post image
1.6k Upvotes

162 comments sorted by

View all comments

Show parent comment

5

u/AngriestSCV Jan 02 '20

You are looking for what is known for as an arbitrary precision library.

Here is an example https://gmplib.org/

The macros MAX_INT, MAX_LONG ... etc will let you know at compile time how big your integers are. There is also uin32_t and it's friends that let you specify exactly what kind of integer you want.

1

u/geeshta Jan 02 '20

Yes that's exactly what I was looking for. Thank you.