Example #1
0
        private static void PointLookup(int block, int index, PointPrecomp p)
        {
            Debug.Assert(0 <= block && block < PrecompBlocks);
            Debug.Assert(0 <= index && index < PrecompPoints);

            int off = block * PrecompPoints * 2 * X448Field.Size;

            for (int i = 0; i < PrecompPoints; ++i)
            {
                int cond = ((i ^ index) - 1) >> 31;
                X448Field.CMov(cond, precompBase, off, p.x, 0);     off += X448Field.Size;
                X448Field.CMov(cond, precompBase, off, p.y, 0);     off += X448Field.Size;
            }
        }