Bitshifts and "And" vs Floor-division and Modular
jimbo1qaz
jimmyli1528 at gmail.com
Thu Sep 6 20:01:12 EDT 2012
More information about the Python-list mailing list
Thu Sep 6 20:01:12 EDT 2012
- Previous message (by thread): HP Quality Center only works with ActiveState Python 2.5
- Next message (by thread): Bitshifts and "And" vs Floor-division and Modular
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Is it faster to use bitshifts or floor division? And which is better, & or %? All divisors and mods are power of 2, so are binary operations faster? And are they considered bad style?
- Previous message (by thread): HP Quality Center only works with ActiveState Python 2.5
- Next message (by thread): Bitshifts and "And" vs Floor-division and Modular
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list