radix_lshift_digits, radix_rshift_digits
Synopsis
#include <flint/radix.h>ulong radix_lshift_digits(nn_ptr res, nn_srcptr a, slong n, unsigned int e, const radix_t radix)sourceulong radix_rshift_digits(nn_ptr res, nn_srcptr a, slong n, unsigned int e, const radix_t radix)sourceShift by = e digits, for less than the limb exponent: the left shift sets to and returns the digits shifted out (as the low digits of the returned limb); the right shift sets to and returns the digits shifted out as the high digits of the returned limb, that is, . These are faster than radix_mul_1 and radix_divrem_1 with . Shifts by whole limbs are pointer offsets.
Cite this page
The FLINT team, “radix_lshift_digits, radix_rshift_digits (radix.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/radix/radix_lshift_digits.html (generated 2026-11-02).
@misc{flint-doc-radix-radix-lshift-digits,
author = {{The FLINT team}},
title = {{radix\_lshift\_digits, radix\_rshift\_digits (radix.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/radix/radix_lshift_digits.html},
note = {Generated 2026-11-02}
}