Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/23/02 15:56
Read: times


 
#34900 - RE: 32-bit Divide with Fixed Divisor
HI Drew
If I'm not wrong, the highest result could be 7158,27. This means that 600000 fits 7158,27 times in 32 bits ( of course ).
So one simple way is to add 600000 so many times as you reach the dividend. You must have a counter that will increment each time you add 600000. This counter will have the result and is very easy to get the rest of the operation.
The problem of this procedure is that in the worst case you will need to do 7158 additions. If you need, for i.e. 50 usec for each addition/comparator then the total time will be 0,36 sec aprox. ( worst case).


Good luck
Daniel

List of 26 messages in thread
TopicAuthorDate
32-bit Divide with Fixed Divisor            01/01/70 00:00      
RE: 32-bit Divide with Fixed Divisor            01/01/70 00:00      
RE: 32-bit Divide with Fixed Divisor            01/01/70 00:00      
RE: 32-bit Divide with Fixed Divisor            01/01/70 00:00      
RE: 32-bit Divide with Fixed Divisor            01/01/70 00:00      
RE: 32-bit Divide with Fixed Divisor            01/01/70 00:00      
RE: 32-bit Divide with Fixed Divisor            01/01/70 00:00      
RE: 32-bit Divide--Rob            01/01/70 00:00      
RE: 32-bit Divide with Fixed Divisor            01/01/70 00:00      
RE: 32-bit Divide with Fixed Divisor exp            01/01/70 00:00      
RE: 32-bit Divide - Rob            01/01/70 00:00      
RE: 32-bit Divide - Andy            01/01/70 00:00      
RE: 32-bit Divide - Andy            01/01/70 00:00      
RE: 32-bit Divide with Fixed Divisor            01/01/70 00:00      
RE: 32-bit Divide with Fixed Divisor            01/01/70 00:00      
RE: why 600000 - Rob            01/01/70 00:00      
RE: why 600000 - Rob            01/01/70 00:00      
RE: why 600000 - Rob            01/01/70 00:00      
RE: why 600000 - Rob            01/01/70 00:00      
RE: 32-bit Divide with Fixed Divisor            01/01/70 00:00      
RE: 32-bit Divide with Fixed Divisor            01/01/70 00:00      
yup.. i have it            01/01/70 00:00      
RE: yup.. i have it            01/01/70 00:00      
x/600000            01/01/70 00:00      
RE: x/600000            01/01/70 00:00      
RE: x/600000            01/01/70 00:00      

Back to Subject List