[algogeeks] Re: How to dived 2 integer number using bitwise opreration

2008-03-09 Thread Dave
If you are interested in writing computer code that does division, mimic the algorithm that you learned in elementary school, but in base 2. It will consist of two stages. In the first stage, shift the divisor left to align it properly with the dividend. In the second stage, if it is appropriate,

[algogeeks] Re: How to dived 2 integer number using bitwise opreration

2008-03-09 Thread abhishek sharma
refer to computer arithmetic this is how division is done through hardware On Sun, Mar 9, 2008 at 2:52 PM, Amritanshu Agrawal <[EMAIL PROTECTED]> wrote: > > Hi All, > I gave to divide 2 integer number using bitwise opreator. > > For Exmaple: >

[algogeeks] How to dived 2 integer number using bitwise opreration

2008-03-09 Thread Amritanshu Agrawal
Hi All, I gave to divide 2 integer number using bitwise opreator. For Exmaple: 12 divided by 6 = 2 quotient Thnaks in advance Amritanshu Agrawal --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Algorithm Geeks" g