FLINT3.7.0-dev

SET_J_BITS_AND_J_R, SET_J_BITS_AND_J_MR

Synopsis#include <flint/fft_small.h>
SET_J_BITS_AND_J_R(j_bits, j_r, j)source
SET_J_BITS_AND_J_MR(j_bits, j_mr, j)source

Split a twiddle index jj into the table number j_bits (the bit length of jj) and the index in that table: j_r =j−2j_bits−1= j - 2^{\mathtt{j\_bits} - 1} for w2jw_{2j}, and j_mr =2j_bits−1−j= 2^{\mathtt{j\_bits}} - 1 - j, which locates −w2j−1-w_{2j}^{-1}. Both are 0 for j=0j = 0.

Cite this page

The FLINT team, “SET_J_BITS_AND_J_R, SET_J_BITS_AND_J_MR (fft_small.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fft_small/SET_J_BITS_AND_J_R.html (generated 2026-11-02).