Fixed bug in example prog in appnote 011

This commit is contained in:
Clifford Wolf 2013-12-05 18:15:14 +01:00
parent 891e4b5b0d
commit 8311492475
1 changed files with 2 additions and 2 deletions

View File

@ -358,7 +358,7 @@ process this cell.
#define BITMAP_SIZE 64
#define OUTPORT 0x10000000
static uint16_t bitmap[BITMAP_SIZE/32];
static uint32_t bitmap[BITMAP_SIZE/32];
static void bitmap_set(uint32_t idx) { bitmap[idx/32] |= 1 << (idx % 32); }
static bool bitmap_get(uint32_t idx) { return (bitmap[idx/32] & (1 << (idx % 32))) != 0; }
@ -403,7 +403,7 @@ file into ABC's internal format as well.
The only thing left to write about the simulation itself is that it probably
was one of the most energy inefficient and time consuming ways of successfully
calculating the first 50 primes the author has ever conducted.
calculating the first 31 primes the author has ever conducted.
\section{Limitations}