TurboPFor encode

This commit is contained in:
powturbo
2016-08-15 17:47:35 +02:00
parent aae3120f95
commit efb676776a

View File

@ -175,8 +175,9 @@ unsigned char *TEMPLATE2(P4DENC, USIZE)(uint_t *__restrict in, unsigned n, unsig
unsigned char *TEMPLATE2(P4DNENC, USIZE)(uint_t *__restrict in, unsigned n, unsigned char *__restrict out) {
uint_t *ip;
for(ip = in; ip < in+n; ip += P4DSIZE) { unsigned l = (in+n) - ip; l = min(l, P4DSIZE);
out = TEMPLATE2(P4DENC, USIZE)(ip, l, out);;
out = TEMPLATE2(P4DENC, USIZE)(ip, l, out);
}
return out;
}
#pragma clang diagnostic pop
#endif