Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] Challenge

2005-06-08 by Dave Hylands

> I'm pretty sure this table is right.

And what I often do is write a little C program which I compile on my
PC that I use to generate source code for tables like this (or CRC
lookups etc).

I typically include the C program #if 0'd out in my source file that
uses it as a way of documenting how the table was actually created.

If you don't want to use 256 bytes for the lookup table, you could
also do a pair of (or a single) 16 byte lookup table which flipped 4
bits. Now you have a pretty wide execution time/space tradeoff and you
can picks what's appropriate for your project.

-- 
Dave Hylands
Vancouver, BC, Canada
http://www.DaveHylands.com/

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.