forked from Github_Repos/cvw
31 lines
442 B
Plaintext
31 lines
442 B
Plaintext
Dividend x --(0.10101111), divisord --(0.11000101)(i -- 16(0.1100)2- 12)
|
|
|
|
X = 175 (xAF)
|
|
D = 197 (xC5)
|
|
|
|
X = 175/256 = 0.68359375
|
|
D = 197/256 = 0.76953125
|
|
|
|
Note: Add lg(r) extra iterations due to shifting of computed q
|
|
q_{computed} = q / radix
|
|
|
|
./srt4div 0.68359375 0.76953125 8 10
|
|
|
|
r=2
|
|
X = 0.10011111
|
|
D = 0.11000101
|
|
|
|
X = 159 (9F)
|
|
D = 197 (C5)
|
|
|
|
X = 159/256 = 0.62109375
|
|
D = 197/256 = 0.76953125
|
|
|
|
./srt2div 0.62109375 0.76953125 8 9
|
|
|
|
|
|
|
|
|
|
|
|
|