maikonadams / opencl-book-samples

Automatically exported from code.google.com/p/opencl-book-samples
0 stars 0 forks source link

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

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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 wel...@gmail.com on 6 Aug 2011 at 11:33

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by dginsb...@upsamplesoftware.com on 7 Aug 2011 at 1:10