Update of /cvsroot/linuxcompressed/linux26/lib/WK4x4
In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv7000/lib/WK4x4
Modified Files:
WK4x4.h
Log Message:
corrected WK4x4 problem
Index: WK4x4.h
===================================================================
RCS file: /cvsroot/linuxcompressed/linux26/lib/WK4x4/WK4x4.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** WK4x4.h 9 Jun 2006 16:16:20 -0000 1.1
--- WK4x4.h 14 Jun 2006 16:23:20 -0000 1.2
***************
*** 1,5 ****
/*
WK4x4-v0.2 -- Wilson-Kaplan-4x4 version 0.2
!
Compresses buffers using a dictionary based match and partial match
scheme.
--- 1,5 ----
/*
WK4x4-v0.2 -- Wilson-Kaplan-4x4 version 0.2
!
Compresses buffers using a dictionary based match and partial match
[...1039 lines suppressed...]
!
! /* Return the number of bytes used to store the compressed
! region. */
! //return ((unsigned int)ceil((double)bitsUsedForEncoding /
! // (double)BITS_PER_WORD)) *
! // BYTES_PER_WORD;
! return (unsigned int)((bitsUsedForEncoding/BITS_PER_WORD +
! !!(bitsUsedForEncoding & BITS_PER_WORD_MASK))*BYTES_PER_WORD);
}
--- 83,91 ----
unsigned int words,
unsigned int* exactMatchCountArray,
! unsigned int* partialMatchCountArray);
! #if defined (__cplusplus)
}
+ #endif /* __cplusplus */
+
+ #endif /* _WK4x4_H */
|