definitive CRC for C

前端 未结 4 1108
北海茫月
北海茫月 2020-12-05 00:59

Since CRC is so widely used, I\'m surprised by having a hard time finding CRC implementations in C.

Is there a \"definitive\" CRC calculation snippet/algorithm for

4条回答
  •  春和景丽
    2020-12-05 01:32

    There are number of different algorithms used to implement CRCs. There is the naive one that does the polynomial division.

    Here is a link for various algorithms, in C, for generic 32 bit CRC computations. The author also gives some speed comparisons.

    Koopman has a website giving the performances of various CRCs, as well as a guide to the best CRCs for a given packet length.

提交回复
热议问题