math - How to divide two numbers without using division operator? -
i have heard can use bitwise operator divide 2 numbers without use of division operator. how done?
answer can in language except assembly language , don't support bitwise operator.
maybe help: http://www.stoimen.com/blog/2012/01/05/php-performance-bitwise-division/
basically, instead of dividing, shift bits right
Comments
Post a Comment