Replies to message #5,611

  • 🏰 Deploying update to the Tatarus security page. If you encounter issues, post here.
geckogoy

Programming thread

Modulo has an implicit division which is a very slow instruction If specifically detecting evenness, better to just mask for the 1 bit 'number &...
Rusty Metal Skull Gun

Programming thread

All C compilers will optimize foo % 2 to foo & 1. I'd be surprised if Python doesn't do the same. Same with foo /= 2 to foo >>= 1.
Back
Top Bottom