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
40 GPGPU Programming for Games and Science
}
else
{
// x = signaling NaN
}
// payload = t & 0x003fffff
}
}
LISTING 2.8: Decoding a 32-bit floating-point number.
The maximum (unbiased) exponent is e
max
= 127. The minimum (unbi-
ased) exponent is e
min
=1 e
max
= 126. The relationship between the
minimum and maximum exponents is required by the IEEE 754-2008 Stan-
dard. The number of bits in the significand is p = 24, which includes the
twenty-three bits of the trailing significand and the leading 1-valued bit for
normal numbers. The subnormal numbers have a leading 0-valued bit, so the
number of significant bits for subnormals is always smaller than p.
The encoding ...
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