Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

2009-03-26

	* crc_models.py: added crc-32mpeg. Thanks to Thomas Edwards.
  • Loading branch information...
commit 24dc5fb405abe4c5542ef7c746361bc77eb30c4d 1 parent 5796fa1
@tpircher authored
View
8 ChangeLog
@@ -1,4 +1,12 @@
#
+# Version 0.7.1, 2009-04-05
+#
+
+2009-03-26 Thomas Pircher <tehpeh@gmx.net>
+
+ * crc_models.py: added crc-32mpeg. Thanks to Thomas Edwards.
+
+#
# Version 0.7, 2009-02-27
#
View
11 crc_models.py
@@ -224,6 +224,17 @@ class CrcModels(object):
'check': 0xe3069283,
})
models.append({
+ 'name': 'crc-32mpeg',
+ 'width': 32,
+ 'poly': 0x4c11db7,
+ 'reflect_in': False,
+ 'xor_in': 0xffffffff,
+ 'reflect_out': False,
+ 'xor_out': 0x0,
+ 'direct': False,
+ 'check': 0x0376e6e7,
+ })
+ models.append({
'name': 'posix',
'width': 32,
'poly': 0x4c11db7,
View
2  crc_opt.py
@@ -53,7 +53,7 @@ class Options(object):
Program details
"""
ProgramName = "pycrc"
- Version = "0.7"
+ Version = "0.7.1"
VersionStr = "%s v%s" % (ProgramName, Version)
WebAddress = "http://www.tty1.net/pycrc/"
View
5 doc/pycrc.xml
@@ -2,12 +2,12 @@
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
<!ENTITY program_name "pycrc">
-<!ENTITY program_version "0.7">
+<!ENTITY program_version "0.7.1">
<!ENTITY author_firstname "Thomas">
<!ENTITY author_surname "Pircher">
<!ENTITY author_email "tehpeh@gmx.net">
<!ENTITY author "&author_firstname; &author_surname;">
-<!ENTITY date "2009-02-27">
+<!ENTITY date "2009-04-05">
<!ENTITY bit-by-bit "bit-by-bit">
<!ENTITY bit-by-bit-fast "bit-by-bit-fast">
<!ENTITY table-driven "table-driven">
@@ -223,6 +223,7 @@
<replaceable>crc-24</replaceable>,
<replaceable>crc-32</replaceable>,
<replaceable>crc-32c</replaceable>,
+ <replaceable>crc-32mpeg</replaceable>,
<replaceable>posix</replaceable>,
<replaceable>jam</replaceable>,
<replaceable>xfer</replaceable>,
View
12 test/test.sh
@@ -307,7 +307,17 @@ testbin "$opt" "$res"
#JAMCRC
res="0x340bc6d9"
cmd="$PYCRC --model jam"
-opt="--width 32 --poly 0x04c11db7 --reflect-in 1 --xor-in 0xffffffff --reflect-out 1 --xor-out 0x0"
+opt="--width 32 --poly 0x4c11db7 --reflect-in 1 --xor-in 0xffffffff --reflect-out 1 --xor-out 0x0"
+teststr "$cmd" "$res"
+teststr "$PYCRC $opt --direct 0" "$res"
+teststr "$PYCRC $opt --direct 1" "$res"
+testfil "$cmd" "$res"
+testbin "$opt" "$res"
+
+#CRC-32MPEG
+res="0x376e6e7"
+cmd="$PYCRC --model crc-32mpeg"
+opt="--width 32 --poly 0x4c11db7 --reflect-in 0 --xor-in 0xffffffff --reflect-out 0 --xor-out 0x0"
teststr "$cmd" "$res"
teststr "$PYCRC $opt --direct 0" "$res"
teststr "$PYCRC $opt --direct 1" "$res"
Please sign in to comment.
Something went wrong with that request. Please try again.