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
50 GPGPU Programming for Games and Science
{
// When trailing is MAX
TRAILING , x i s MAX SUBNORMAL a nd
// n ex tdown i s MIN
NORMAL.
++trailing ;
return SIGN
MASK | trailing ;
}
}
}
else if (biased < MAX
BIASED EXPONENT)
{
UInteger nonnegative = (x . encoding & NOT
SIGN MASK ) ;
if (sign == 0)
{
−− nonnegative ;
return nonnegative ;
}
else
{
++nonnegative ;
return SIGN
MASK | nonnegative ;
}
}
else if ( trailing == 0)
{
if (sign == 0)
{
// The n ex tdown o f +INFINITY i s +MAX
NORMAL.
return MAX
NORMAL;
}
else
{
// The n ex tdown of INFINITY i s INFINITY .
return SIGN
MASK | INFINITY ;
}
}
else if ( trailing & NAN
QUIET MASK )
{
// x is a quiet NaN; return it ( preserving its pay ...
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