Software Archive
Read-only legacy content
17060 Обсуждение

bug in sample code in Parallel Universe Issue 28

Mark_D_
Начинающий
2 802Просмотр.

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 баллов
7 Ответы
Vladimir_P_1234567890
Сотрудник
2 802Просмотр.

of course! this is a simple transform algo.

thanks for catching this,
--Vladimir

SergeyKostrov
Ценный участник II
2 802Просмотр.
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_
Начинающий
2 802Просмотр.
Mark_D_
Начинающий
2 802Просмотр.

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
Ценный участник II
2 802Просмотр.
>>...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_
Начинающий
2 802Просмотр.

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
Сотрудник
2 802Просмотр.

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

Ответить