Quicr / numero-uri

BSD 2-Clause "Simplified" License
1 stars 0 forks source link

int128 implementation #7

Closed fluffy closed 1 year ago

fluffy commented 1 year ago

Lets talk about much faster way to do the uint128 stuff.

On a bunch of stuff use, we can do it with direct compiler support for in128 and on others I would like to use a struct with two int64

BrettRegnier commented 1 year ago

This was something I was thinking about earlier, I don't think it will be very difficult to get this to work with some bitwise magic with the value itself. When we can we can setup a meeting to get this discussed! :)

BrettRegnier commented 1 year ago

One of the ideas I was thinking of was a vector of uint64_t elements and the big_uint is initialized with x amount of bits it will calculate how many elements it requires and keeps track of the number of bits it uses.

BrettRegnier commented 1 year ago

This has been overhauled in this commit