It seems to work correctly, but I thought that the most that could be stored in memory was a 32 bit integer?
Now I'm confused as to what difference it makes.
Thanks!
I think the other answers didn't quite explain this correctly.
uint64_t and int64_t are C-language data types, not hardware data types. The compiler does whatever it takes to make these types work as 64-bit unsigned or signed integers. If the hardware provides 64-bit registers and integer operations then well and good -- the compiler will use those directly. If the hardware has only 32-bit registers (or 16-bit or 8-bit), the compiler and runtime system use software emulation to get the job done.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With