X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=swcsa%2FintIndex%2FpsiGonzalo.c;fp=swcsa%2FintIndex%2FpsiGonzalo.c;h=ee8f08657e76023b1023b39983e7ded96eced2bd;hb=a56dda3a95d2df268969bd3c2c994b5d2f020410;hp=f5e4715edb8b74d294221ea0106150506edd3401;hpb=338b9d601d0bae8ee76813852ea146ef7ba901d8;p=SXSI%2FTextCollection.git diff --git a/swcsa/intIndex/psiGonzalo.c b/swcsa/intIndex/psiGonzalo.c index f5e4715..ee8f086 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));