Commit 20df2f4b authored by Niels Möller's avatar Niels Möller

(find_first_one): Declare the lookup table as static const, and

use unsigned char rather than unsigned..

Rev: nettle/examples/eratosthenes.c:1.12
parent 95a27492
...@@ -124,7 +124,7 @@ vector_clear_bits (unsigned long *vector, unsigned long step, ...@@ -124,7 +124,7 @@ vector_clear_bits (unsigned long *vector, unsigned long step,
static unsigned static unsigned
find_first_one (unsigned long x) find_first_one (unsigned long x)
{ {
unsigned table[0x101] = static const unsigned char table[0x101] =
{ {
15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment