minsumpow.cpp | minsumpow.cpp | |||
---|---|---|---|---|
skipping to change at line 20 | skipping to change at line 20 | |||
Array<float,1> B(4), C(4); | Array<float,1> B(4), C(4); | |||
A = 0, 1, 2, 3, | A = 0, 1, 2, 3, | |||
30, 2, 4, 1, | 30, 2, 4, 1, | |||
3, 2, 5, 6, | 3, 2, 5, 6, | |||
12, 9, 0, 0; | 12, 9, 0, 0; | |||
B = sum(pow2(A),j); | B = sum(pow2(A),j); | |||
C = 14, 921, 74, 225; | C = 14, 921, 74, 225; | |||
BZTEST(count(C == B) == 4); | BZTEST(count(C == B) == 4); | |||
// workaround for MIPSpro compiler bug | ||||
#if defined(__sgi) | ||||
TinyVector<int,1> N = maxIndex(B); | ||||
#else | ||||
TinyVector<int,1> N = maxIndex(sum(pow2(A),j)); | TinyVector<int,1> N = maxIndex(sum(pow2(A),j)); | |||
#endif | ||||
BZTEST(N(0) == 1); | BZTEST(N(0) == 1); | |||
return 0; | return 0; | |||
} | } | |||
End of changes. 2 change blocks. | ||||
0 lines changed or deleted | 5 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |