ddlog.h 503 B

123456789101112131415161718192021222324
  1. #pragma once
  2. #include "config.h"
  3. #include <stdbool.h>
  4. #include <stdint.h>
  5. #include <gmp.h>
  6. #define strip_size (FAILURE - 1)
  7. #define halfstrip_size ((strip_size)/2)
  8. extern uint64_t lookup[0x01 << halfstrip_size];
  9. extern uint64_t offset[0x01 << halfstrip_size];
  10. /** default function used for conversion */
  11. #define convert convert_lookup
  12. uint32_t convert_lookup(uint64_t *nn);
  13. uint32_t convert_ec17(uint64_t *nn);
  14. uint32_t convert_naif(mpz_t n);
  15. bool distinguished(mpz_t n);
  16. void dlog_precompute();