L
L
LoliDeveloper2021-09-07 20:29:15
Java
LoliDeveloper, 2021-09-07 20:29:15

How does java add 2 Longs on a 32-bit machine?

Is this the same as with BigInt? Like, first it loads one half in percent, then saves the answer to the cache, counts the second and then combines the answer into one? (with hyphens and so on)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
LoliDeveloper, 2021-09-07
@LoliDeveloper

Yes, just like with BigInt...

S
SagePtr, 2021-09-07
@SagePtr

What's the problem? Naturally, the performance will be lower than on a 64-bit processor, but this is not mathematically impossible. And it is not necessary to save to the cache, you can save it to the register.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question