Band operation with 64 bits

Asked

Viewed 50 times

1

I know that on Moon 5.3 (demonstration) there are 64 bit operators, such as:

print(0xaaDbc4Cd17Af & 0xff00000000) --> DB 00 00 00 00

Is there an algorithm to perform a similar operation in other versions? The Moon I run comes with the library bit32 respectively.

1 answer

1


As the name says, the library bit32 does not support 64 bits, only 32 bits.

If you need 64 bits even, you will have to implement your own library using for example strings instead of numbers.

  • Using strings seems like a good idea in my case. Have a preview of how many bytes a string with less than 48 octets would occupy in memory?

Browser other questions tagged

You are not signed in. Login or sign up in order to post.