eratosthenes/common.h

15 lines
319 B
C
Raw Normal View History

2023-01-02 05:21:36 +01:00
#ifndef _h_common
#define _h_common
#define _POSIX_C_SOURCE 199309L
#include <time.h>
2023-01-03 03:13:19 +01:00
#define SIZE ( primes_max * sizeof(_Bool))
#define SIZEP (*primes_max * sizeof(_Bool))
2023-01-02 05:21:36 +01:00
unsigned long isqrt(unsigned long i);
void get_timespec_delta(struct timespec* delta, struct timespec* begin, struct timespec* end);
2023-01-02 05:21:36 +01:00
#endif