|
Algorithm 1 Accurate division of with 24 bits |
: = 0; : = A; : = 0
while do
: = right-shift ; : =
end while
Q: = 0
for do
: = left-shift ; Q: = left-shift Q
if then
: = ; : = 1
else
: = 0
end if
end for
for do
: = left-shift ; Q: = left-shift Q
if then
: = ; : = 1
else
: = 0
end if
end for
|