FLINT3.7.0-dev

_mp_real_exp_bitwise_vec, _mp_real_log1p_bitwise_vec, _mp_real_atan_bitwise_vec, _mp_real_tan_halfangle_vec

Synopsis#include <flint/mp_real.h>
void _mp_real_exp_bitwise_vec(nn_ptr res, nn_srcptr x, slong n, int r)source
void _mp_real_log1p_bitwise_vec(nn_ptr res, nn_srcptr x, slong n, int r)source
void _mp_real_atan_bitwise_vec(nn_ptr res, nn_srcptr x, slong n, int r)source
void _mp_real_tan_halfangle_vec(nn_ptr ysin, nn_ptr ycos, nn_ptr ytan, nn_srcptr x, slong n, int r)source

The bitwise reductions of _mp_real_exp_bitwise_rs, _mp_real_log1p_bitwise_rs, _mp_real_atan_bitwise_rs and of the sine, cosine and tangent, with signed digits and the full-precision arithmetic in radix 2^{56} on vec4n lanes, for x \in [0, 1) and 32 \le r \le 64n - 16, within the bounds of the corresponding _bitwise_rs functions (64-bit only). Outputs: (\mathit{res}, n + 1) for exp, (\mathit{res}, n) for log1p and atan, and n + 1 limbs for each of \sin, \cos, \tan (each may be NULL).

The _bitwise_rs functions call these from MP_REAL_EXP_BITWISE_VEC_MIN = 4, MP_REAL_LOG1P_BITWISE_VEC_MIN = 48, MP_REAL_ATAN_BITWISE_VEC_MIN = 4 and MP_REAL_TRIG_BITWISE_VEC_MIN = 4 limbs (beyond the per-size kernels for r = 0). See Signed digits on vector lanes.

Cite this page

The FLINT team, “_mp_real_exp_bitwise_vec, _mp_real_log1p_bitwise_vec, _mp_real_atan_bitwise_vec, _mp_real_tan_halfangle_vec (mp_real.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/mp_real/_mp_real_exp_bitwise_vec.html (generated 2026-10-20).