Skip to Main Content
Digital Arithmetic
book

Digital Arithmetic

by Miloš D. Ercegovac, Tomás Lang
September 2003
Intermediate to advanced content levelIntermediate to advanced
709 pages
26h 51m
English
Morgan Kaufmann
Content preview from Digital Arithmetic
40 c H APT E R ~ Review of Basic Number Representations and Arithmetic Algorithms
t.7
1.1
Dividend x = 1110
--" (00001011) 2,
divisor d = 2 = (0010) 2
w[O] = o oooo
2w[0] -- 0 0001
-d* = 1 1110
1011
0110
w[1] = 11111
2w[1] = 1 1110
+d" = 0 0010
0110 q3 = 0
1100
.,[2] = o oooo
2w[2] = 0 0001
-d* = 1 1110
1100 q2 = 1
1000
w[3] = 11111
2w[3] = 1 1111
+d" = 0 0010
1000 ql = 0
0000
w[4] = 0 0001 0000 qo = 1
Quotient q = (0101) 2 = 5, remainder w = (0001) 2 = 1. Check: 11 = 2 • 5 + 1.
F ! G U R E 1.12
Example of radix-2 nonrestoring division.
Exercises
Representation of Positive Integers
(a) ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Computer Arithmetic in Practice

Computer Arithmetic in Practice

Sławomir Gryś

Publisher Resources

ISBN: 9781558607989