Lines Matching refs:QW
38 #define QW 1 /* width of bas-q digit in bits */
117 *pk = y >> (long)(L+QW-w);
118 return (w-QW);
121 y = ((unsigned long)y << QW) & MASK, v += n)
122 if ((l += QW) > L)
142 return (w-QW);
144 for (k -= c, y = 1, l = w; k >= n; k -= n, y <<= QW)
145 if ((l += QW) > L)
188 for (i = 0, q = 1, rq = r; i < QW; i++, q *= 2, rq *= rq)
196 for (w = QW, j = 1; j < d; w += QW, j *= q)
201 qcs = (((long)(q-1)<<w) + cq) << (L-QW-w);
205 return (w + QW*(rc/(1-z.u) - 1));