Jump to content
IGNORED

using long long (64 bit integers)?


Dionoid

Recommended Posts

While the ARM7TDMI-S microprocessor used in the Harmory/Melody only supports 8, 16 and 32 bit data types, I found that using 64-bit integers is allowed when doing bitwise operations only (bitwise and, or, shifting, etc.).

I'm currently using an unsigned long long variable to create on-the-fly 48-bit wide graphics, and also for masking and validating a 35-bit wide password (i.e. 7 BASE32 characters).

Sometimes 32 bits just isn't enough ?

 

Note that doing calculations with 64-bit integers isn't supported, but at least all bitwise operations are.

Maybe these 64-bit tricks could come in handy for other developers too.

Edited by Dionoid
  • Like 1
Link to comment
Share on other sites

  • 1 year later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...