Tintin's blog

By Tintin, 14 years ago, In English

Hi, if the upper range of unsigned __int64 is 2^64-1 then how can I get any number modulo by 2^64? Thanks.

  • Vote: I like it
  • -16
  • Vote: I do not like it

| Write comment?
»
14 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

What do you mean saying "how can I get any number modulo by 2^64?"? what's "any" number? Give an example, please.

»
14 years ago, hide # |
 
Vote: I like it +5 Vote: I do not like it

Modulo 2^64? It's easy. Just use unsigned long long and... nothing more!