math.h
| 1 | #ifndef CUTILS_MATH_H |
| 2 | #define CUTILS_MATH_H |
| 3 | |
| 4 | #include <cutils/common.h> |
| 5 | #include <cutils/byte_array.h> |
| 6 | #include <cutils/bitfuncs.h> |
| 7 | |
| 8 | uintmax_t isqrt(uintmax_t n); |
| 9 | intmax_t ipow(intmax_t base, uintmax_t exp); |
| 10 | bool is_prime(uintmax_t n); |
| 11 | Bytearray* primesieve(uintmax_t limit); |
| 12 | |
| 13 | |
| 14 | |
| 15 | #endif /* CUTILS_MATH_H */ |
| 16 |