prodp 87 lib/mpi/mpi-internal.h #define MPN_MUL_N_RECURSE(prodp, up, vp, size, tspace) \ prodp 90 lib/mpi/mpi-internal.h mul_n_basecase(prodp, up, vp, size); \ prodp 92 lib/mpi/mpi-internal.h mul_n(prodp, up, vp, size, tspace); \ prodp 133 lib/mpi/mpi-internal.h int mpihelp_mul(mpi_ptr_t prodp, mpi_ptr_t up, mpi_size_t usize, prodp 135 lib/mpi/mpi-internal.h void mpih_sqr_n_basecase(mpi_ptr_t prodp, mpi_ptr_t up, mpi_size_t size); prodp 136 lib/mpi/mpi-internal.h void mpih_sqr_n(mpi_ptr_t prodp, mpi_ptr_t up, mpi_size_t size, prodp 139 lib/mpi/mpi-internal.h int mpihelp_mul_karatsuba_case(mpi_ptr_t prodp, prodp 21 lib/mpi/mpih-mul.c #define MPN_MUL_N_RECURSE(prodp, up, vp, size, tspace) \ prodp 24 lib/mpi/mpih-mul.c mul_n_basecase(prodp, up, vp, size); \ prodp 26 lib/mpi/mpih-mul.c mul_n(prodp, up, vp, size, tspace); \ prodp 29 lib/mpi/mpih-mul.c #define MPN_SQR_N_RECURSE(prodp, up, size, tspace) \ prodp 32 lib/mpi/mpih-mul.c mpih_sqr_n_basecase(prodp, up, size); \ prodp 34 lib/mpi/mpih-mul.c mpih_sqr_n(prodp, up, size, tspace); \ prodp 55 lib/mpi/mpih-mul.c mul_n_basecase(mpi_ptr_t prodp, mpi_ptr_t up, mpi_ptr_t vp, mpi_size_t size) prodp 66 lib/mpi/mpih-mul.c MPN_COPY(prodp, up, size); prodp 68 lib/mpi/mpih-mul.c MPN_ZERO(prodp, size); prodp 71 lib/mpi/mpih-mul.c cy = mpihelp_mul_1(prodp, up, size, v_limb); prodp 73 lib/mpi/mpih-mul.c prodp[size] = cy; prodp 74 lib/mpi/mpih-mul.c prodp++; prodp 83 lib/mpi/mpih-mul.c cy = mpihelp_add_n(prodp, prodp, up, size); prodp 85 lib/mpi/mpih-mul.c cy = mpihelp_addmul_1(prodp, up, size, v_limb); prodp 87 lib/mpi/mpih-mul.c prodp[size] = cy; prodp 88 lib/mpi/mpih-mul.c prodp++; prodp 95 lib/mpi/mpih-mul.c mul_n(mpi_ptr_t prodp, mpi_ptr_t up, mpi_ptr_t vp, prodp 112 lib/mpi/mpih-mul.c MPN_MUL_N_RECURSE(prodp, up, vp, esize, tspace); prodp 113 lib/mpi/mpih-mul.c cy_limb = mpihelp_addmul_1(prodp + esize, up, esize, vp[esize]); prodp 114 lib/mpi/mpih-mul.c prodp[esize + esize] = cy_limb; prodp 115 lib/mpi/mpih-mul.c cy_limb = mpihelp_addmul_1(prodp + esize, vp, size, up[esize]); prodp 116 lib/mpi/mpih-mul.c prodp[esize + size] = cy_limb; prodp 142 lib/mpi/mpih-mul.c MPN_MUL_N_RECURSE(prodp + size, up + hsize, vp + hsize, hsize, prodp 149 lib/mpi/mpih-mul.c mpihelp_sub_n(prodp, up + hsize, up, hsize); prodp 152 lib/mpi/mpih-mul.c mpihelp_sub_n(prodp, up, up + hsize, hsize); prodp 156 lib/mpi/mpih-mul.c mpihelp_sub_n(prodp + hsize, vp + hsize, vp, hsize); prodp 159 lib/mpi/mpih-mul.c mpihelp_sub_n(prodp + hsize, vp, vp + hsize, hsize); prodp 166 lib/mpi/mpih-mul.c MPN_MUL_N_RECURSE(tspace, prodp, prodp + hsize, hsize, prodp 170 lib/mpi/mpih-mul.c MPN_COPY(prodp + hsize, prodp + size, hsize); prodp 171 lib/mpi/mpih-mul.c cy = mpihelp_add_n(prodp + size, prodp + size, prodp 172 lib/mpi/mpih-mul.c prodp + size + hsize, hsize); prodp 177 lib/mpi/mpih-mul.c mpihelp_sub_n(prodp + hsize, prodp + hsize, tspace, prodp 181 lib/mpi/mpih-mul.c mpihelp_add_n(prodp + hsize, prodp + hsize, tspace, prodp 194 lib/mpi/mpih-mul.c cy += mpihelp_add_n(prodp + hsize, prodp + hsize, tspace, size); prodp 196 lib/mpi/mpih-mul.c mpihelp_add_1(prodp + hsize + size, prodp 197 lib/mpi/mpih-mul.c prodp + hsize + size, hsize, cy); prodp 199 lib/mpi/mpih-mul.c MPN_COPY(prodp, tspace, hsize); prodp 200 lib/mpi/mpih-mul.c cy = mpihelp_add_n(prodp + hsize, prodp + hsize, tspace + hsize, prodp 203 lib/mpi/mpih-mul.c mpihelp_add_1(prodp + size, prodp + size, size, 1); prodp 207 lib/mpi/mpih-mul.c void mpih_sqr_n_basecase(mpi_ptr_t prodp, mpi_ptr_t up, mpi_size_t size) prodp 218 lib/mpi/mpih-mul.c MPN_COPY(prodp, up, size); prodp 220 lib/mpi/mpih-mul.c MPN_ZERO(prodp, size); prodp 223 lib/mpi/mpih-mul.c cy_limb = mpihelp_mul_1(prodp, up, size, v_limb); prodp 225 lib/mpi/mpih-mul.c prodp[size] = cy_limb; prodp 226 lib/mpi/mpih-mul.c prodp++; prodp 235 lib/mpi/mpih-mul.c cy_limb = mpihelp_add_n(prodp, prodp, up, size); prodp 237 lib/mpi/mpih-mul.c cy_limb = mpihelp_addmul_1(prodp, up, size, v_limb); prodp 239 lib/mpi/mpih-mul.c prodp[size] = cy_limb; prodp 240 lib/mpi/mpih-mul.c prodp++; prodp 245 lib/mpi/mpih-mul.c mpih_sqr_n(mpi_ptr_t prodp, mpi_ptr_t up, mpi_size_t size, mpi_ptr_t tspace) prodp 261 lib/mpi/mpih-mul.c MPN_SQR_N_RECURSE(prodp, up, esize, tspace); prodp 262 lib/mpi/mpih-mul.c cy_limb = mpihelp_addmul_1(prodp + esize, up, esize, up[esize]); prodp 263 lib/mpi/mpih-mul.c prodp[esize + esize] = cy_limb; prodp 264 lib/mpi/mpih-mul.c cy_limb = mpihelp_addmul_1(prodp + esize, up, size, up[esize]); prodp 266 lib/mpi/mpih-mul.c prodp[esize + size] = cy_limb; prodp 276 lib/mpi/mpih-mul.c MPN_SQR_N_RECURSE(prodp + size, up + hsize, hsize, tspace); prodp 282 lib/mpi/mpih-mul.c mpihelp_sub_n(prodp, up + hsize, up, hsize); prodp 284 lib/mpi/mpih-mul.c mpihelp_sub_n(prodp, up, up + hsize, hsize); prodp 289 lib/mpi/mpih-mul.c MPN_SQR_N_RECURSE(tspace, prodp, hsize, tspace + size); prodp 292 lib/mpi/mpih-mul.c MPN_COPY(prodp + hsize, prodp + size, hsize); prodp 293 lib/mpi/mpih-mul.c cy = mpihelp_add_n(prodp + size, prodp + size, prodp 294 lib/mpi/mpih-mul.c prodp + size + hsize, hsize); prodp 297 lib/mpi/mpih-mul.c cy -= mpihelp_sub_n(prodp + hsize, prodp + hsize, tspace, size); prodp 307 lib/mpi/mpih-mul.c cy += mpihelp_add_n(prodp + hsize, prodp + hsize, tspace, size); prodp 309 lib/mpi/mpih-mul.c mpihelp_add_1(prodp + hsize + size, prodp 310 lib/mpi/mpih-mul.c prodp + hsize + size, hsize, cy); prodp 312 lib/mpi/mpih-mul.c MPN_COPY(prodp, tspace, hsize); prodp 313 lib/mpi/mpih-mul.c cy = mpihelp_add_n(prodp + hsize, prodp + hsize, tspace + hsize, prodp 316 lib/mpi/mpih-mul.c mpihelp_add_1(prodp + size, prodp + size, size, 1); prodp 321 lib/mpi/mpih-mul.c mpihelp_mul_karatsuba_case(mpi_ptr_t prodp, prodp 337 lib/mpi/mpih-mul.c MPN_MUL_N_RECURSE(prodp, up, vp, vsize, ctx->tspace); prodp 339 lib/mpi/mpih-mul.c prodp += vsize; prodp 358 lib/mpi/mpih-mul.c cy = mpihelp_add_n(prodp, prodp, ctx->tp, vsize); prodp 359 lib/mpi/mpih-mul.c mpihelp_add_1(prodp + vsize, ctx->tp + vsize, vsize, prodp 361 lib/mpi/mpih-mul.c prodp += vsize; prodp 386 lib/mpi/mpih-mul.c cy = mpihelp_add_n(prodp, prodp, ctx->tspace, vsize); prodp 387 lib/mpi/mpih-mul.c mpihelp_add_1(prodp + vsize, ctx->tspace + vsize, usize, cy); prodp 427 lib/mpi/mpih-mul.c mpihelp_mul(mpi_ptr_t prodp, mpi_ptr_t up, mpi_size_t usize, prodp 430 lib/mpi/mpih-mul.c mpi_ptr_t prod_endp = prodp + usize + vsize - 1; prodp 448 lib/mpi/mpih-mul.c MPN_COPY(prodp, up, usize); prodp 450 lib/mpi/mpih-mul.c MPN_ZERO(prodp, usize); prodp 453 lib/mpi/mpih-mul.c cy = mpihelp_mul_1(prodp, up, usize, v_limb); prodp 455 lib/mpi/mpih-mul.c prodp[usize] = cy; prodp 456 lib/mpi/mpih-mul.c prodp++; prodp 465 lib/mpi/mpih-mul.c cy = mpihelp_add_n(prodp, prodp, up, prodp 468 lib/mpi/mpih-mul.c cy = mpihelp_addmul_1(prodp, up, usize, v_limb); prodp 470 lib/mpi/mpih-mul.c prodp[usize] = cy; prodp 471 lib/mpi/mpih-mul.c prodp++; prodp 479 lib/mpi/mpih-mul.c if (mpihelp_mul_karatsuba_case(prodp, up, usize, vp, vsize, &ctx) < 0)