_mp_real_small_exp_pm_2, _mp_real_small_exp_pm_3
Synopsis
#include <flint/mp_real.h>void _mp_real_small_exp_pm_2(ulong * y2, ulong * y1, ulong * y0, ulong * z2, ulong * z1, ulong * z0, ulong v1, ulong v0)sourcevoid _mp_real_small_exp_pm_3(ulong * y3, ulong * y2, ulong * y1, ulong * y0, ulong * z3, ulong * z2, ulong * z1, ulong * z0, ulong v2, ulong v1, ulong v0)sourceFor v \in [0, 1) at two resp. three fraction limbs (most significant limb first), set y = \exp(v) and z = \exp(-v), each with an integral limb, at about 1.5 times the cost of one exponential. 64-bit only.
Cite this page
The FLINT team, “_mp_real_small_exp_pm_2, _mp_real_small_exp_pm_3 (mp_real.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/mp_real/_mp_real_small_exp_pm_2.html (generated 2026-10-20).
@misc{flint-doc-mp-real-mp-real-small-exp-pm-2,
author = {{The FLINT team}},
title = {{\_mp\_real\_small\_exp\_pm\_2, \_mp\_real\_small\_exp\_pm\_3 (mp\_real.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/mp_real/_mp_real_small_exp_pm_2.html},
note = {Generated 2026-10-20}
}