Dionoid Posted July 2, 2021 Share Posted July 2, 2021 (edited) 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 July 2, 2021 by Dionoid 1 Link to comment Share on other sites More sharing options...
+SpiceWare Posted July 2, 2021 Share Posted July 2, 2021 That's unexpected. Link to comment Share on other sites More sharing options...
+SpiceWare Posted February 12, 2023 Share Posted February 12, 2023 Forgot to update the Tips and Tricks topic with this, it's now in there. Link to comment Share on other sites More sharing options...
Recommended Posts