Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Mark_D_
Beginner
106 Views

bug in sample code in Parallel Universe Issue 28

I can't find anyplace to provide feedback to the magazine staff.

page 10 of the latest Parallel Universe magazine says

   for (x = in; x < in+N; ++x)   *(out+(x-in)) = foo(x);

The correct code must be foo(*x) however. Yes?

for (x = in; x < in + N; ++x)

  *(out+(x-in)) = foo(*x);

 

0 Kudos
7 Replies
106 Views

of course! this is a simple transform algo.

thanks for catching this,
--Vladimir

SergeyKostrov
Valued Contributor II
106 Views

Could you provide a link to that article? I simply would like to understand that: ... for (x = in; x < in + N; ++x) *(out+(x-in)) = foo( *x ); ... is correct and ... for (x = in; x < in + N; ++x) *(out+(x-in)) = foo( x ); ... or ... for (x = in; x < in + N; ++x) *(out+(x-in)) = foo( &x ); ... are not correct...
Mark_D_
Beginner
106 Views

Mark_D_
Beginner
106 Views

Also, as a first time poster on Intel's forums, is this the best place to provide feedback to the editorial staff of Parallel Universe? Or is someplace else better?  Thanks!

SergeyKostrov
Valued Contributor II
106 Views

>>...is this the best place to provide feedback to the editorial staff of Parallel Universe? Or is someplace >>else better? It is better to contact the Parallel Universe magazine directly.
Mark_D_
Beginner
106 Views

How? I did not find contact info in the magazine, and my google-fu was inadequate to find contact info on the Intel website. Hence my post here.

Harold_G_Intel
Employee
106 Views

Hi,

We re looking into what might be the best channel for this.  For now, just post any questions/comments on the Parallel Universe Magazine here.

Regards,

Hal
Intel(R) Developer Zone support

http://software.intel.com

Reply