eGospodarka.pl
eGospodarka.pl poleca

eGospodarka.plGrupypl.comp.programmingCRC-32 - czy jest standard? › Re: CRC-32 - czy jest standard?
  • Path: news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!news.cyf-kr.edu.pl!news.nask
    .pl!news.nask.org.pl!news.unit0.net!news2.euro.net!209.197.12.242.MISMATCH!nx01
    .iad01.newshosting.com!newshosting.com!newsfeed.neostrada.pl!unt-exc-02.news.ne
    ostrada.pl!unt-spo-b-01.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail
    From: "R.e.m.e.K" <g...@d...null>
    Subject: Re: CRC-32 - czy jest standard?
    Newsgroups: pl.comp.programming
    User-Agent: 40tude_Dialog/2.0.15.1pl
    MIME-Version: 1.0
    Content-Type: text/plain; charset="utf-8"
    Content-Transfer-Encoding: 8bit
    Sender: hell@heaven
    References: <51669a09$0$26686$65785112@news.neostrada.pl>
    <o...@s...wroclaw.optopol.zawiercie>
    Date: Thu, 11 Apr 2013 13:54:14 +0200
    Lines: 29
    Message-ID: <5166a467$0$1260$65785112@news.neostrada.pl>
    Organization: Telekomunikacja Polska
    NNTP-Posting-Host: 89-71-60-255.dynamic.chello.pl
    X-Trace: 1365681255 unt-rea-a-02.news.neostrada.pl 1260 89.71.60.255:53835
    X-Complaints-To: a...@n...neostrada.pl
    Xref: news-archive.icm.edu.pl pl.comp.programming:202545
    [ ukryj nagłówki ]

    Dnia Thu, 11 Apr 2013 13:18:10 +0200, Wojciech Sura napisał(a):

    > Patrzyłeś tu?
    > http://en.wikipedia.org/wiki/Cyclic_redundancy_check
    #Commonly_used_and_standardized_CRCs

    Dzieki, jakos tam predzej nie zajrzalem, a to mi temat nieco rozjasnilo.
    Okazuje sie ze "moja" (DEC) implementacja korzystala z alternatywnego
    wielomianu. Opisuje to komentarz w jednym z plikow z "Jedi Library":

    Description:
    Defines a new "generator polynomial" and starting value for the 32 bit CRC
    functions. Beware that the check and the correction only works if the
    polynomial is "appropriate". Two of these polynomials are predefined:
    Crc32PolynomCCITT = $04C11DB7 represents the polynomial x^32 + x^26 + x^23
    + x^22 + x^16 + x^12 + x^11 + x^10 + x^8 + x^7 + x^5 + x^4 + x^2 + x + 1
    that is suggested by the CCITT and used by Ethernet and ZIP.
    Crc32PolynomXXXXX = $9DB11213 represents the polynomial x^32 + x^31 + x^28 +
    x^27 + x^26 + x^24 + x^23 + x^21 + x^20 + x^16 + x^12 + x^9 + x^4 + x + 1
    which is another "appropriate" polynomial (as far as I know). Beware that
    not appropriate polynomials result in highly undesirable behaviour of the
    CRC.

    Nie wiem co dokladnie autor mial na mysli piszac o <another "appropriate"
    polynomial> ale skoro w DEC tez z tego wielomianu skorzystali to musi byc to
    jakis "inny" standard.

    --
    pozdro
    R.e.m.e.K

Podziel się

Poleć ten post znajomemu poleć

Wydrukuj ten post drukuj

Najnowsze wątki z tej grupy


Najnowsze wątki

Szukaj w grupach

Eksperci egospodarka.pl

1 1 1

Wpisz nazwę miasta, dla którego chcesz znaleźć jednostkę ZUS.

Wzory dokumentów

Bezpłatne wzory dokumentów i formularzy.
Wyszukaj i pobierz za darmo: