Tcl Library Source Code

Check-in [95af8220a8]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Followup: crc - crc16 - Fixed calculation of signbit. crc16 contained the same problematic signbit code we saw in crc32. The same change has been applied. crc16 version bumped to 1.1.4
Downloads: See separate download page
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 95af8220a8f4f2deca3e742f35a813238fa49229e54ce71506897afa3c3e5df3
User & Date: aku 2020-03-06 22:08:12.587
Context
2020-04-16
23:51
Clean up Fossil commit warnings (fossil test-commit-warning) by removing carriage returns, switching to UTF-8 where appropriate, and whitelisting particular files. Note: Fossil fails to honor binary-glob for files that it doesn't think are binaries in the first place due to not containing NUL bytes, so these cases are listed in both binary-glob and encoding-glob. check-in: 7529457152 user: andy tags: trunk
2020-03-06
22:08
Followup: crc - crc16 - Fixed calculation of signbit. crc16 contained the same problematic signbit code we saw in crc32. The same change has been applied. crc16 version bumped to 1.1.4 check-in: 95af8220a8 user: aku tags: trunk
06:57
crc - crc32 - Fixed calculation of signbit. The existing code relied on having the `int()` result limited to system word size. Starting with Tcl 8.7 this is not true any longer (See [TIP 514](https://core.tcl-lang.org/tips/doc/trunk/tip/514.md)). Added code to use `tcl_platform(wordSize)` as source to derive the signbit from. Kept the existing code for old versions of the core without `tcl_platform(wordSize)`. For these `int()` will be limited as expected, thus no trouble. This was reported indirectly to us through https://github.com/andreas-kupries/critcl/issues/107 crc32 version bumped to 1.3.3 check-in: 7737acdb11 user: aku tags: trunk
Changes
Unified Diff Side-by-Side Diff Patch
Changes to embedded/md/tcllib/files/modules/crc/crc16.md.
Changes to idoc/man/files/modules/crc/crc16.n.
Changes to idoc/www/tcllib/files/modules/crc/crc16.html.
Changes to modules/crc/crc16.man.
Changes to modules/crc/crc16.tcl.
Changes to modules/crc/pkgIndex.tcl.