X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=swcsa%2FintIndex%2FpsiGonzalo.c;fp=swcsa%2FintIndex%2FpsiGonzalo.c;h=f5e4715edb8b74d294221ea0106150506edd3401;hb=72aa11ca7df7975f650344e8904a1a690be2480e;hp=ee8f08657e76023b1023b39983e7ded96eced2bd;hpb=46d3fee70e7e9576c4cc8af46cd66c1c8eceb1e9;p=SXSI%2FTextCollection.git diff --git a/swcsa/intIndex/psiGonzalo.c b/swcsa/intIndex/psiGonzalo.c index ee8f086..f5e4715 100644 --- a/swcsa/intIndex/psiGonzalo.c +++ b/swcsa/intIndex/psiGonzalo.c @@ -71,8 +71,8 @@ GonzaloCompressedPsi gonzaloCompressPsi(uint *Psi, uint psiSize, uint T, uint HU Hacc = createHuff (acc,HUFF-1, UNSORTED); Hlen = createHuff (lacc,samplen-2, UNSORTED); totexc = acc[0]; - pslen = bits(psiSize+1); - _bplen = bits(Hacc.total+Hlen.total+(1+links/samplen+totexc)*pslen); + pslen = _bits(psiSize+1); + _bplen = _bits(Hacc.total+Hlen.total+(1+links/samplen+totexc)*pslen); _bposS = (uint *)malloc ((((1+links/samplen)*_bplen+W-1)/W)*sizeof(uint)); _cPsi = (uint *)malloc (((Hacc.total+Hlen.total+(1+links/samplen+totexc)*pslen+W-1)/W)*sizeof(uint));