Software Archive
Read-only legacy content
17061 Discussions

bug in sample code in Parallel Universe Issue 28

Mark_D_
Beginner
359 Views

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
Vladimir_P_1234567890
359 Views

of course! this is a simple transform algo.

thanks for catching this,
--Vladimir

0 Kudos
SergeyKostrov
Valued Contributor II
359 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
Mark_D_
Beginner
359 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
SergeyKostrov
Valued Contributor II
359 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
Mark_D_
Beginner
359 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
Harold_G_Intel
Employee
359 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
Reply