Remove loop[ijkl]
They confused clang-format a lot. FossilOrigin-Name: 6b85eefc857c74c00d7ef693e312cc15df53201a6712aee8ba8d57c643c1703b
This commit is contained in:
parent
2c5f2d0342
commit
006dba8370
22 changed files with 318 additions and 257 deletions
14
src/tools.m
14
src/tools.m
|
@ -10,11 +10,13 @@ endianswap(
|
|||
{
|
||||
if (*((char *)&stride))
|
||||
return;
|
||||
loop(w, length) loop(i, stride / 2)
|
||||
{
|
||||
uchar *p = (uchar *)memory + w * stride;
|
||||
uchar t = p[i];
|
||||
p[i] = p[stride - i - 1];
|
||||
p[stride - i - 1] = t;
|
||||
|
||||
for (int w = 0; w < length; w++) {
|
||||
for (int i = 0; i < stride / 2; i++) {
|
||||
uchar *p = (uchar *)memory + w * stride;
|
||||
uchar t = p[i];
|
||||
p[i] = p[stride - i - 1];
|
||||
p[stride - i - 1] = t;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue