Skip to content

Commit 20b9713

Browse files
authored
Merge pull request #123 from pps83/fix-indent
Fix misleading indentation
2 parents bb3385b + 6ec6432 commit 20b9713

4 files changed

Lines changed: 22 additions & 11 deletions

File tree

lib/bitpack.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,8 @@ typedef unsigned char *(*BITPACK_D64)(uint64_t *__restrict out, unsigned n, cons
223223
for(ip = in, in += n; ip < in;) { \
224224
T3(uint, _usize_, _t) o,x;\
225225
unsigned iplen = in - ip,b; \
226-
if(iplen > _csize_) iplen = _csize_; PREFETCH(ip+512,0);\
226+
if(iplen > _csize_) iplen = _csize_; \
227+
PREFETCH(ip+512,0);\
227228
o = T2(bit,_usize_)(ip, iplen, &x); b = T2(bsr,_usize_)(o);\
228229
*op++ = b; op = T2(bitpacka, _usize_)[b](ip, iplen, op);\
229230
ip += iplen;\

lib/trled.c

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -356,14 +356,22 @@ unsigned T2(_srled, USIZE)(const unsigned char *__restrict in, unsigned char *__
356356
op += r;
357357
ip += (r+1)*sizeof(uint_t); PREFETCH(ip+512, 0);
358358
#else
359-
if(((c = ctout(ip)) == e)) goto a; ip += sizeof(uint_t); *op++ = c;
360-
if(((c = ctout(ip)) == e)) goto a; ip += sizeof(uint_t); *op++ = c;
361-
if(((c = ctout(ip)) == e)) goto a; ip += sizeof(uint_t); *op++ = c;
362-
if(((c = ctout(ip)) == e)) goto a; ip += sizeof(uint_t); *op++ = c;
363-
if(((c = ctout(ip)) == e)) goto a; ip += sizeof(uint_t); *op++ = c;
364-
if(((c = ctout(ip)) == e)) goto a; ip += sizeof(uint_t); *op++ = c;
365-
if(((c = ctout(ip)) == e)) goto a; ip += sizeof(uint_t); *op++ = c;
366-
if(((c = ctout(ip)) == e)) goto a; ip += sizeof(uint_t); *op++ = c; PREFETCH(ip +512, 0);
359+
if(((c = ctout(ip)) == e)) goto a;
360+
ip += sizeof(uint_t); *op++ = c;
361+
if(((c = ctout(ip)) == e)) goto a;
362+
ip += sizeof(uint_t); *op++ = c;
363+
if(((c = ctout(ip)) == e)) goto a;
364+
ip += sizeof(uint_t); *op++ = c;
365+
if(((c = ctout(ip)) == e)) goto a;
366+
ip += sizeof(uint_t); *op++ = c;
367+
if(((c = ctout(ip)) == e)) goto a;
368+
ip += sizeof(uint_t); *op++ = c;
369+
if(((c = ctout(ip)) == e)) goto a;
370+
ip += sizeof(uint_t); *op++ = c;
371+
if(((c = ctout(ip)) == e)) goto a;
372+
ip += sizeof(uint_t); *op++ = c;
373+
if(((c = ctout(ip)) == e)) goto a;
374+
ip += sizeof(uint_t); *op++ = c; PREFETCH(ip +512, 0);
367375
continue;
368376
a: ip += sizeof(uint_t); PREFETCH(ip +512, 0);
369377
#endif

lib/vp4c.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,8 @@ unsigned char *T2(_P4ENC, USIZE)(uint_t *__restrict in, unsigned n, unsigned cha
377377
#if HYBRID > 0 && USIZE >= 16
378378
if(bx <= USIZE) {
379379
#endif
380-
for(i = 0; i < (n+63)/64; i++) ctou64(out+i*8) = xmap[i]; out += PAD8(n); //if(eqx == xn && bx) { out[-1] |=0x80; T2(ctou, USIZE)(out)=ax; out += (bx+7)/8; } else
380+
for(i = 0; i < (n+63)/64; i++) ctou64(out+i*8) = xmap[i]; //if(eqx == xn && bx) { out[-1] |=0x80; T2(ctou, USIZE)(out)=ax; out += (bx+7)/8; } else
381+
out += PAD8(n);
381382
out = T2(bitpack, USIZE)(inx, xn, out, bx); //if(eq == n && b) { out[-1]|= 0x80; T2(ctou, USIZE)(out)=a; out += (b+7)/8; } else
382383
out = T2(BITPACK, USIZE)(_in, n, out, b);
383384
#if HYBRID > 0 && USIZE >= 16

lib/vsimple.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,8 @@ unsigned char *T2(VSDEC, USIZE)(unsigned char *__restrict ip, size_t n, uint_t *
453453
unsigned b = ((*ip++) >> 5)+1;
454454
*op = *(unsigned long long *)ip;
455455
if(unlikely(b!=8))
456-
*op &= (1ull<<(b*8))-1; op++; ip += b;
456+
*op &= (1ull<<(b*8))-1;
457+
op++; ip += b;
457458
break;
458459
}
459460
#endif

0 commit comments

Comments
 (0)