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 55
a 1-bit followed by the trailing significand bits and then followed by zero or
more 0-bits. Therefore, x is an integer and round
e
(x)=x.
Pseudocode for the rounding is presented next. The generic types
Integer
and UInteger represent signed and unsigned integers, respectively, with the
same number of bits as the binary encoding for the floating-point number.
Listing 2.17 is an implementation of the default rounding mode: rounding
with ties-to-even.
binaryN RoundToIntegralTiesToEven ( binaryN x )
{
UInteger sign , biased , t ra ili ng ;
GetEncoding(x , sign , biased , trail in g );
Integer exponent = biased binaryN : :EXPONENT
BIAS ;
if (ex
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