plan 9 kernel history: overview | file list | diff list

1999/1022/port/thwack.h (diff list | history)

1999/1022/sys/src/9/port/thwack.h:8,321999/1111/sys/src/9/port/thwack.h:8,27 (short | long | prev | next)
Remove unused or hidden parameters. Add unthwackadd.
rsc Fri Mar 4 12:44:25 2005
1999/1022    
	ThwStats	= 8, 
1999/1001    
	ThwMaxBlock	= 1600,		/* max size of compressible block */ 
 
	MinMatch	= 3,		/* shortest match possible */ 
1999/1022    
	HashLog		= 12, 
1999/1001    
	HashSize	= 1<<HashLog, 
	HashMask	= HashSize - 1, 
 
1999/1007    
	MaxFastLen	= 9, 
	BigLenCode	= 0xf4,		/* minimum code for large lenth encoding */ 
	BigLenBase	= 4,		/* starting items to encode for big lens */ 
	BigLenBits	= 8, 
1999/1111    
	MinMatch	= 3,		/* shortest match possible */ 
 
1999/1001    
	MaxOff		= 8, 
	OffBase		= 6, 
 
1999/1022    
	MinDecode	= 8,		/* minimum bits to decode a match or lit; >= 8 */ 
1999/1007    
	MaxOffDecode	= 4 + MaxOff + OffBase - 1, 
	MaxLenDecode	= 16, 
1999/1001    
 
	EWinBlocks	= 32,		/* blocks held in encoder window */ 
	DWinBlocks	= 32,		/* blocks held in decoder window */ 
	CompBlocks	= 5,		/* max blocks used to encode data */ 
1999/1111    
	CompBlocks	= 10,		/* max blocks used to encode data */ 
1999/1001    
 
	MaxSeqMask	= 8,		/* number of bits in coding block mask */ 
1999/1022    
	MaxSeqStart	= 256		/* max offset of initial coding block */ 
1999/1022/sys/src/9/port/thwack.h:70,721999/1111/sys/src/9/port/thwack.h:65,68
1999/1022    
int	thwack(Thwack*, uchar *dst, uchar *src, int nsrc, ulong seq, ulong stats[ThwStats]); 
1999/1001    
void	thwackack(Thwack*, ulong seq, ulong mask); 
int	unthwack(Unthwack*, uchar *dst, int ndst, uchar *src, int nsrc, ulong seq); 
1999/1111    
int	unthwackadd(Unthwack*, uchar *src, int nsrc, ulong seq); 


source code copyright © 1990-2005 Lucent Technologies; see license
Plan 9 distribution
comments to russ cox (rsc@swtch.com)