|
PatchworkOS
10941b4
A non-POSIX operating system.
|
#include <stdatomic.h>#include <stdbool.h>#include <stdint.h>#include <stdio.h>#include <sys/defs.h>#include <threads.h>#include <time.h>Go to the source code of this file.
Macros | |
| #define | PRIME_MAX (10000000) |
Functions | |
| bool | is_prime (uint64_t n) |
| static void | count_primes (uint64_t start, uint64_t end) |
| static int | thread_entry (void *arg) |
| static void | benchmark (uint64_t threadAmount) |
| int | main (void) |
Variables | |
| static atomic_long | count |
| static atomic_long | next |
|
static |
|
static |