summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2023-07-08 22:07:17 -0700
committerKaz Kylheku <kaz@kylheku.com>2023-07-08 22:07:17 -0700
commiteeaeb5754b5a570554da031f9f7a9a669551175b (patch)
treeca98ec48925d68b8205769a093249b0fad9f12d2
parentfd14278a312a4c880af0a26d3a4ac0c0759d19c1 (diff)
downloadtxr-eeaeb5754b5a570554da031f9f7a9a669551175b.tar.gz
txr-eeaeb5754b5a570554da031f9f7a9a669551175b.tar.bz2
txr-eeaeb5754b5a570554da031f9f7a9a669551175b.zip
doc: document crc32 parameters.
* txr.1: Specify which crc32 is implemented: which polynomial, bit direction, and complementation of the output.
-rw-r--r--txr.19
1 files changed, 9 insertions, 0 deletions
diff --git a/txr.1 b/txr.1
index 3e187c85..603a7b8c 100644
--- a/txr.1
+++ b/txr.1
@@ -67909,6 +67909,15 @@ The
.code crc32
function returns the calculated CRC-32 as a nonnegative integer.
+The parameters of the algorith are as follows. The polynomial is
+.codn #x04C11DB7 ;
+the input and result are reflected; the initial value is
+.codn #xFFFFFFFF ;
+and the final value is bitwise
+.IR xor -ed
+with
+.codn #xFFFFFFFF .
+
.TP* Examples:
.mono