This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Bitwise Mathematics Utilities | |
* | |
* A collection of fast bitwise operations for integer mathematics. | |
* These functions prioritize performance over readability and should be used | |
* when micro-optimizations are critical (game engines, real-time applications). | |
* | |
* References: | |
* - http://michalbe.blogspot.com.br/2013/03/javascript-less-known-parts-bitwise.html | |
* - http://jsperf.com/bitwise-vs-math-object |