All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Campbell <ijc@hellion.org.uk>
To: George Spelvin <linux@horizon.com>
Cc: hpa@zytor.com, linux-kernel@vger.kernel.org, tglx@linutronix.de,
	mingo@redhat.com
Subject: Re: There are smaller ways to encode a CRC32 table...
Date: Fri, 01 Feb 2008 10:37:32 +0000	[thread overview]
Message-ID: <1201862252.25409.69.camel@localhost.localdomain> (raw)
In-Reply-To: <20080201045320.11859.qmail@science.horizon.com>


On Thu, 2008-01-31 at 23:53 -0500, George Spelvin wrote:
> The code to fill it in is smaller than the table itself.
> Is it worth complicating things with some INIT code to reduce
> the stored image size?  (The table is not compressible.)
[snip]

Thanks but since the code is only used when building the image I'm not
too worried which way is used and I've tested the table based one ;-).

> And BTW, storing the inverse of the CRC only catches trailing (after the CRC)
> all-zero padding.  If this is not a problem, it's not necessary, although you
> still might want to do it just for consistency.  This inversion changes the
> CRC of the entire image (body + CRC) from all-zero to a fixed non-zero value.
> (To be precise, to the (non-inverted) CRC of 0xffffffff.)

I didn't know the precise details of why you might invert it, thanks for
the info.

Ian
-- 
Ian Campbell
Current Noise: Reverend Bizarre - Sodoma Sunrise

I am a man: nothing human is alien to me.
		-- Publius Terentius Afer (Terence)


      parent reply	other threads:[~2008-02-01 10:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-01  4:53 There are smaller ways to encode a CRC32 table George Spelvin
2008-02-01  4:54 ` H. Peter Anvin
2008-02-01 10:37 ` Ian Campbell [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1201862252.25409.69.camel@localhost.localdomain \
    --to=ijc@hellion.org.uk \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@horizon.com \
    --cc=mingo@redhat.com \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.