2 Dec
2022
2 Dec
'22
6:23 a.m.
Alex Henrie (@alexhenrie) commented about dlls/gdiplus/matrix.c:
static void matrix_multiply(GDIPCONST REAL * left, GDIPCONST REAL * right, REAL * out) { REAL temp[6]; - int i, odd; - - for(i = 0; i < 6; i++){ - odd = i % 2; - temp[i] = left[i - odd] * right[odd] + left[i - odd + 1] * right[odd + 2] + - (i >= 4 ? right[odd + 4] : 0.0); - } + // Unroll loop to optimize execution speed This comment is unnecessary (and misleading, since there isn't a loop anymore). Also, the Wine project only uses `/* */` comments in C code, not `//` comments. Just delete the comment.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/1618#note_18389