* [U-Boot-Users] DYNAMIC_CRC_TABLE ????
@ 2003-04-15 8:20 Steven Scholz
0 siblings, 0 replies; 2+ messages in thread
From: Steven Scholz @ 2003-04-15 8:20 UTC (permalink / raw)
To: u-boot
Hi there,
The file crc32.c contains some #ifdef DYNAMIC_CRC_TABLE .
What's the purpose of that?
Are there any advantages of defining that?
Thanks,
Steven
^ permalink raw reply [flat|nested] 2+ messages in thread
* [U-Boot-Users] DYNAMIC_CRC_TABLE ????
@ 2003-04-15 8:53 DeLaGarza, Robert
0 siblings, 0 replies; 2+ messages in thread
From: DeLaGarza, Robert @ 2003-04-15 8:53 UTC (permalink / raw)
To: u-boot
On Tuesday, April 15, 2003 1:21 AM, Steven Scholz [SMTP:steven.scholz at imc-berlin.de] wrote:
> The file crc32.c contains some #ifdef DYNAMIC_CRC_TABLE .
>
> What's the purpose of that?
> Are there any advantages of defining that?
>
That directive enables one to create the crc_table[256] array at run time, rather than compiling it into
the code.
One advantage of doing this is that it reduces the size of the code; only the function used to generate
the table needs to be stored in non-volatile memory, rather than the entire table (for a 32-bit long, the
table will occupy 1 kilobyte of memory).
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-04-15 8:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-15 8:20 [U-Boot-Users] DYNAMIC_CRC_TABLE ???? Steven Scholz
-- strict thread matches above, loose matches on Subject: below --
2003-04-15 8:53 DeLaGarza, Robert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox