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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -