Skip to Content.

rare-dev - [rare-dev] custom crc32 library in freerouter

Subject: Rare project developers

List archive


[rare-dev] custom crc32 library in freerouter


Chronological Thread 
  • From: mc36 <>
  • To: Cristina Klippel Dominicini <>, Cristina Klippel Dominicini <>, "Rafael S. Guimaraes" <>, Rafael S. Guimarães <>
  • Cc: "" <>
  • Subject: [rare-dev] custom crc32 library in freerouter
  • Date: Tue, 19 Oct 2021 17:34:58 +0200

hi

i've found the crc32_custom magic in bmv2:

behavioral-model-main/src/bm_sim/crc_map.cpp
behavioral-model-main/src/bm_sim/calculations.cpp

in the crc_map.cpp for crc32c, they uses the same magic as me at
http://source.nop.hu/src/net/freertr/cry/cryHashCrc32c.java
and the table calculation in calculations.cpp seems similar that i do too,
but mine works with fixed magic...

but they have no parameter called coefficiet, but the magic called
polynomial...

my best guess according to
https://en.wikipedia.org/wiki/Cyclic_redundancy_check is that they're the
same?
(but again, it's my bad but i'm a bit noob in these math things, i'm much
more a networker and coder guy:)

so if that's the case then i'll create a new crc32 class that needs to be
initialized with the poly paramareter...

thanks,

cs



Archive powered by MHonArc 2.6.19.

Top of Page