projects
/
SXSI
/
TextCollection.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update swcs with larson-sadakane suffix array construction method.
[SXSI/TextCollection.git]
/
swcsa
/
intIndex
/
psiGonzalo.c
diff --git
a/swcsa/intIndex/psiGonzalo.c
b/swcsa/intIndex/psiGonzalo.c
index
ee8f086
..
f5e4715
100644
(file)
--- 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];
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));
_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));