Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
16 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
Highlighted
16 Views

of course! this is a simple transform algo.

thanks for catching this,
--Vladimir

0 Kudos
Highlighted
Valued Contributor II
16 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...
0 Kudos
Highlighted
Beginner
16 Views

0 Kudos
Highlighted
Beginner
16 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!

0 Kudos
Highlighted
Valued Contributor II
16 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.
0 Kudos
Highlighted
Beginner
16 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.

0 Kudos
Highlighted
Employee
16 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

0 Kudos