diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-06-06 09:13:54 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-06-06 09:13:54 +0200 |
| commit | ab0db69a7b11ba1a9dc52d50c94e9e321b70ebf0 (patch) | |
| tree | 76be6a8b1596ea1e74dbf7085b85214c2c83e69a /06_storage/primes.h | |
| parent | 961c3470d7e9bdf5efbe0509f586be75d7052d8b (diff) | |
| download | emscripten-tutorial-ab0db69a7b11ba1a9dc52d50c94e9e321b70ebf0.tar.gz emscripten-tutorial-ab0db69a7b11ba1a9dc52d50c94e9e321b70ebf0.zip | |
Added example 6
Diffstat (limited to '06_storage/primes.h')
| -rw-r--r-- | 06_storage/primes.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/06_storage/primes.h b/06_storage/primes.h new file mode 100644 index 0000000..d9006f7 --- /dev/null +++ b/06_storage/primes.h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | #ifndef PRIMES_H | ||
| 2 | #define PRIMES_H | ||
| 3 | |||
| 4 | #include <limits.h> | ||
| 5 | |||
| 6 | #define MAX_PRIME INT_MAX | ||
| 7 | #define TABLESIZE (1 << 28) | ||
| 8 | |||
| 9 | int primes_in_range(int, int, void (*)(const char *)); | ||
| 10 | void generate_primes(unsigned char *, void (*)(const char *)); | ||
| 11 | |||
| 12 | #endif | ||
