Skip to Content
GPGPU Programming for Games and Science
book

GPGPU Programming for Games and Science

by David H. Eberly
August 2014
Intermediate to advanced
469 pages
16h 30m
English
A K Peters/CRC Press
Content preview from GPGPU Programming for Games and Science
CPU Computing 25
where the high-order 1-bit occurs at index
d
0. The coefficients d
i
are the
remaining bits of the number, if any.
We may write r as
r =
n
d
=
2
n
+
n
1
i=0
n
i
2
i
2
d
+
d
1
i=0
d
i
2
i
=
1+
n
1
i=0
n
i
2
i
n
1+
d
1
i=0
d
i
2
i
d
2
n
d
=
1+α
1+β
2
n
d
(2.13)
where α and β are defined by the last equality and both numbers are neces-
sarily in the interval [0, 1).
When α β,(1+α)/(1 + β) [1, 2) and
1+α
1+β
=1+
i=0
c
i
2
(i+1)
=1.c (2.14)
When α<β,(1+α)/(1 + β) (0, 1), which implies 2(1 + α)/(1 + β) (1, 2)
and
2(1 + α)
1+β
=1+
i=0
c
i
2
(i+1)
=1.c (2.15)
Equations (2.14) and (2.15) may be combined to produce the representation
r =1.c 2
n
d
ω
=1.c 2
p
(2.16)
where ω is defined ...
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

Graphics Gems V (IBM Version)

Graphics Gems V (IBM Version)

Alan W. Paeth
GPU Pro 6

GPU Pro 6

Wolfgang Engel

Publisher Resources

ISBN: 9781466595354