| plan 9 kernel history: overview | file list | diff list |
1999/1001/port/thwack.h (diff list | history)
| 1999/1001/sys/src/9/port/thwack.h:12,22 – 1999/1007/sys/src/9/port/thwack.h:12,27 (short | long) | ||
|
Remove MaxLen. Add MaxFastLen, BigLen*, Max*Decode.
Change Thwack.slot to int. Remove Unthwack bit buffer.
rsc Fri Mar 4 12:44:25 2005 | ||
| 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/1001 | MaxOff = 8, OffBase = 6, MinDecode = 9, /* minimum bits to decode a match or lit */ | |
| 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 */ | |
| 1999/1001/sys/src/9/port/thwack.h:44,50 – 1999/1007/sys/src/9/port/thwack.h:49,55 | ||
| 1999/1001 | uchar *dst; /* output buffer */ uchar *dmax; | |
| 1999/1007 | int slot; /* next block to use */ | |
| 1999/1001 | ThwBlock blocks[EWinBlocks]; ushort hash[EWinBlocks][HashSize]; uchar data[EWinBlocks][ThwMaxBlock]; | |
| 1999/1001/sys/src/9/port/thwack.h:59,69 – 1999/1007/sys/src/9/port/thwack.h:64,69 | ||
| 1999/1001 | struct Unthwack { | |
| 1999/1007/sys/src/9/port/thwack.h:5,14 – 1999/1022/sys/src/9/port/thwack.h:5,15 (short | long) | ||
|
Increase HashLog to 12. Add Thwstats. Reduce MinDecode to 8. Format edit. Remove Thwack bit buffer.
rsc Fri Mar 4 12:44:25 2005 | ||
| 1999/1001 | enum { | |
| 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/sys/src/9/port/thwack.h:19,25 – 1999/1022/sys/src/9/port/thwack.h:20,26 | ||
| 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 | ||
| 1999/1007/sys/src/9/port/thwack.h:28,34 – 1999/1022/sys/src/9/port/thwack.h:29,35 | ||
| 1999/1001 | CompBlocks = 5, /* max blocks used to encode data */ MaxSeqMask = 8, /* number of bits in coding block mask */ | |
| 1999/1022 | MaxSeqStart = 256 /* max offset of initial coding block */ | |
| 1999/1001 | }; struct ThwBlock | |
| 1999/1007/sys/src/9/port/thwack.h:44,54 – 1999/1022/sys/src/9/port/thwack.h:45,50 | ||
| 1999/1001 | struct Thwack { | |
| 1999/1007 | int slot; /* next block to use */ | |
| 1999/1001 | ThwBlock blocks[EWinBlocks]; ushort hash[EWinBlocks][HashSize]; | |
| 1999/1007/sys/src/9/port/thwack.h:71,76 – 1999/1022/sys/src/9/port/thwack.h:67,72 | ||
| 1999/1001 | void thwackinit(Thwack*); void unthwackinit(Unthwack*); | |
| 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/1022/sys/src/9/port/thwack.h:8,32 – 1999/1111/sys/src/9/port/thwack.h:8,27 (short | long) | ||
|
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 */ | |
| 1999/1022 | HashLog = 12, | |
| 1999/1001 | HashSize = 1<<HashLog, HashMask = HashSize - 1, | |
| 1999/1007 |
| |
| 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 |
| |
| 1999/1001 | EWinBlocks = 32, /* blocks held in encoder window */ DWinBlocks = 32, /* blocks held in decoder window */ | |
| 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,72 – 1999/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); | |
| 1999/1111/sys/src/9/port/thwack.h:65,68 – 1999/1116/sys/src/9/port/thwack.h:65,67 (short | long) | ||
|
Remove unthwackadd.
rsc Fri Mar 4 12:44:25 2005 | ||
| 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 |
| |
| 1999/1116/sys/src/9/port/thwack.h:19,25 – 2001/0213/sys/src/9/port/thwack.h:19,25 (short | long) | ||
|
Decrease EWinBlocks.
rsc Fri Mar 4 12:44:25 2005 | ||
| 1999/1001 | ||
| 1999/1022 | MinDecode = 8, /* minimum bits to decode a match or lit; >= 8 */ | |
| 1999/1001 |
| |
| 2001/0213 | EWinBlocks = 22, /* blocks held in encoder window */ | |
| 1999/1001 | DWinBlocks = 32, /* blocks held in decoder window */ | |
| 1999/1111 | CompBlocks = 10, /* max blocks used to encode data */ | |
| 1999/1001 | ||
| 2001/0213/sys/src/9/port/thwack.h:65,67 – 2001/0214/sys/src/9/port/thwack.h:65,68 (short | long) | ||
|
Add unthwackstate.
rsc Fri Mar 4 12:44:25 2005 | ||
| 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); | |
| 2001/0214 | ulong unthwackstate(Unthwack *ut, uchar *mask); | |
| 2001/0214/sys/src/9/port/thwack.h:19,25 – 2001/0527/sys/src/9/port/thwack.h:19,25 (short | long) | ||
|
9P2000 conversion XXX. Lost changes. Increase EWinBlocks; remove unthwackstate.
rsc Fri Mar 4 12:44:25 2005 | ||
| 1999/1001 | ||
| 1999/1022 | MinDecode = 8, /* minimum bits to decode a match or lit; >= 8 */ | |
| 1999/1001 | ||
| 2001/0213 |
| |
| 2001/0527 | EWinBlocks = 32, /* blocks held in encoder window */ | |
| 1999/1001 | DWinBlocks = 32, /* blocks held in decoder window */ | |
| 1999/1111 | CompBlocks = 10, /* max blocks used to encode data */ | |
| 1999/1001 | ||
| 2001/0214/sys/src/9/port/thwack.h:65,68 – 2001/0527/sys/src/9/port/thwack.h:65,67 | ||
| 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); | |
| 2001/0214 |
| |
| 2001/0527/sys/src/9/port/thwack.h:19,25 – 2001/1011/sys/src/9/port/thwack.h:19,25 (short | long) | ||
|
Add changes lost by 9P2000.
rsc Fri Mar 4 12:44:25 2005 | ||
| 1999/1001 | ||
| 1999/1022 | MinDecode = 8, /* minimum bits to decode a match or lit; >= 8 */ | |
| 1999/1001 | ||
| 2001/0527 |
| |
| 2001/1011 | EWinBlocks = 22, /* blocks held in encoder window */ | |
| 1999/1001 | DWinBlocks = 32, /* blocks held in decoder window */ | |
| 1999/1111 | CompBlocks = 10, /* max blocks used to encode data */ | |
| 1999/1001 | ||
| 2001/0527/sys/src/9/port/thwack.h:65,67 – 2001/1011/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); | |
| 2001/1011 | ulong unthwackstate(Unthwack *ut, uchar *mask); | |