Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/bitpack.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,8 @@ typedef unsigned char *(*BITPACK_D64)(uint64_t *__restrict out, unsigned n, cons
for(ip = in, in += n; ip < in;) { \
T3(uint, _usize_, _t) o,x;\
unsigned iplen = in - ip,b; \
if(iplen > _csize_) iplen = _csize_; PREFETCH(ip+512,0);\
if(iplen > _csize_) iplen = _csize_; \
PREFETCH(ip+512,0);\
o = T2(bit,_usize_)(ip, iplen, &x); b = T2(bsr,_usize_)(o);\
*op++ = b; op = T2(bitpacka, _usize_)[b](ip, iplen, op);\
ip += iplen;\
Expand Down
24 changes: 16 additions & 8 deletions lib/trled.c
Original file line number Diff line number Diff line change
Expand Up @@ -356,14 +356,22 @@ unsigned T2(_srled, USIZE)(const unsigned char *__restrict in, unsigned char *__
op += r;
ip += (r+1)*sizeof(uint_t); PREFETCH(ip+512, 0);
#else
if(((c = ctout(ip)) == e)) goto a; ip += sizeof(uint_t); *op++ = c;
if(((c = ctout(ip)) == e)) goto a; ip += sizeof(uint_t); *op++ = c;
if(((c = ctout(ip)) == e)) goto a; ip += sizeof(uint_t); *op++ = c;
if(((c = ctout(ip)) == e)) goto a; ip += sizeof(uint_t); *op++ = c;
if(((c = ctout(ip)) == e)) goto a; ip += sizeof(uint_t); *op++ = c;
if(((c = ctout(ip)) == e)) goto a; ip += sizeof(uint_t); *op++ = c;
if(((c = ctout(ip)) == e)) goto a; ip += sizeof(uint_t); *op++ = c;
if(((c = ctout(ip)) == e)) goto a; ip += sizeof(uint_t); *op++ = c; PREFETCH(ip +512, 0);
if(((c = ctout(ip)) == e)) goto a;
ip += sizeof(uint_t); *op++ = c;
if(((c = ctout(ip)) == e)) goto a;
ip += sizeof(uint_t); *op++ = c;
if(((c = ctout(ip)) == e)) goto a;
ip += sizeof(uint_t); *op++ = c;
if(((c = ctout(ip)) == e)) goto a;
ip += sizeof(uint_t); *op++ = c;
if(((c = ctout(ip)) == e)) goto a;
ip += sizeof(uint_t); *op++ = c;
if(((c = ctout(ip)) == e)) goto a;
ip += sizeof(uint_t); *op++ = c;
if(((c = ctout(ip)) == e)) goto a;
ip += sizeof(uint_t); *op++ = c;
if(((c = ctout(ip)) == e)) goto a;
ip += sizeof(uint_t); *op++ = c; PREFETCH(ip +512, 0);
continue;
a: ip += sizeof(uint_t); PREFETCH(ip +512, 0);
#endif
Expand Down
3 changes: 2 additions & 1 deletion lib/vp4c.c
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,8 @@ unsigned char *T2(_P4ENC, USIZE)(uint_t *__restrict in, unsigned n, unsigned cha
#if HYBRID > 0 && USIZE >= 16
if(bx <= USIZE) {
#endif
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
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
out += PAD8(n);
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
out = T2(BITPACK, USIZE)(_in, n, out, b);
#if HYBRID > 0 && USIZE >= 16
Expand Down
3 changes: 2 additions & 1 deletion lib/vsimple.c
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,8 @@ unsigned char *T2(VSDEC, USIZE)(unsigned char *__restrict ip, size_t n, uint_t *
unsigned b = ((*ip++) >> 5)+1;
*op = *(unsigned long long *)ip;
if(unlikely(b!=8))
*op &= (1ull<<(b*8))-1; op++; ip += b;
*op &= (1ull<<(b*8))-1;
op++; ip += b;
break;
}
#endif
Expand Down