Possible Duplicate:
implement division with bit wise operator
Divide a number by 3 without using *, /, +, -, % operators
I came across this question in an interview. I want to know if there any possibly way to divide a number by 5 without using division operator and if any possible solution exists using bitwise operators only.I figured one out using repeated subtraction till zero approaches. Number can be signed and unsigned. Please suggest any way out without using +,-,/,* and %.