version 1.2, 2018/09/28 08:20:28 |
version 1.3, 2020/10/06 06:31:19 |
|
|
* DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, |
* DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, |
* PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. |
* PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. |
* |
* |
* $OpenXM: OpenXM_contrib2/asir2018/engine/D.c,v 1.1 2018/09/19 05:45:06 noro Exp $ |
* $OpenXM: OpenXM_contrib2/asir2018/engine/D.c,v 1.2 2018/09/28 08:20:28 noro Exp $ |
*/ |
*/ |
#include "ca.h" |
#include "ca.h" |
|
|
Line 296 int ncombi(int n0,int n,int k,int *c) |
|
Line 296 int ncombi(int n0,int n,int k,int *c) |
|
void nthrootz(Z number,int n,Z *root) |
void nthrootz(Z number,int n,Z *root) |
{ |
{ |
Z s,t,u,pn,base,n1,n2,q,r,gcd,num,z; |
Z s,t,u,pn,base,n1,n2,q,r,gcd,num,z; |
int sgn,index,p,i,tmp,tp,mlr,num0; |
int sgn,index,p,i,tp,mlr,num0; |
|
unsigned int tmp; |
|
|
for ( i = 0; !(n % 2); n /= 2, i++ ); |
for ( i = 0; !(n % 2); n /= 2, i++ ); |
STOZ(n,z); |
STOZ(n,z); |