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
commit1e4c5806cefdb0d6611f56160959ad1b56273f4b (patch)
treeca98ec48925d68b8205769a093249b0fad9f12d2
parent9e84ee8a8a27b2123385084e418d7bd069304a0e (diff)
downloadtxr-1e4c5806cefdb0d6611f56160959ad1b56273f4b.tar.gz
txr-1e4c5806cefdb0d6611f56160959ad1b56273f4b.tar.bz2
txr-1e4c5806cefdb0d6611f56160959ad1b56273f4b.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