dlog_table_init, dlog_table_clear, dlog_table
Synopsis
#include <flint/dlog.h>ulong dlog_table_init(dlog_table_t t, ulong a, ulong mod)sourcevoid dlog_table_clear(dlog_table_t t)sourceulong dlog_table(const dlog_table_t t, ulong b)sourceBuild the table of the logarithms of the powers of a modulo mod (an array of mod words; a must be invertible, which is not checked), free it, and look up \log_a(b). The cost estimate is 1.
Cite this page
The FLINT team, “dlog_table_init, dlog_table_clear, dlog_table (dlog.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/dlog/dlog_table_init.html (generated 2026-10-20).
@misc{flint-doc-dlog-dlog-table-init,
author = {{The FLINT team}},
title = {{dlog\_table\_init, dlog\_table\_clear, dlog\_table (dlog.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/dlog/dlog_table_init.html},
note = {Generated 2026-10-20}
}