opencl-book-samples icon indicating copy to clipboard operation
opencl-book-samples copied to clipboard

Errata: Incorrect explenation in sample code comment (ch.4, pg.129)

Open GoogleCodeExporter opened this issue 9 years ago • 1 comments

The sample code on page 129 contains an incorrect explenation regarding the 
widened scalar 'a'. Please see attached file for clarification.

The correct comment should either be:

// vc.x = vd.x ? a : vb.x
...

Or, better yet:

// vc.x = vd.x ? ((int4)a).x : vb.x
...

Original issue reported on code.google.com by [email protected] on 6 Aug 2011 at 11:33

Attachments:

GoogleCodeExporter avatar Mar 14 '15 09:03 GoogleCodeExporter

Original comment by [email protected] on 7 Aug 2011 at 1:10

  • Changed state: Accepted

GoogleCodeExporter avatar Mar 14 '15 09:03 GoogleCodeExporter