Home
last modified time | relevance | path

Searched refs:posmod (Results 1 – 25 of 40) sorted by relevance

12

/dports/math/eclib/eclib-20210318/libsrc/
H A Dtwoadic.cc116 { mc >>= v; c = posmod(mc,8); //& 0x7; in try1()
274 long d8=posmod(d,8), c2=posmod(c,2); in case1()
290 d8=posmod(d,8); d4=d8&3; c2=posmod(c,2); in case1()
292 if (d4&1) return ((d8==1)|| ((posmod(4*a+4*b+2*c-1,8))==d8)); in case1()
308 long d8=posmod(d,8), c2=posmod(c,2); in case2()
320 d8=posmod(d,8); d4=d8&3; c2=posmod(c,2); in case2()
341 case 2: return ((posmod(-4*(a+b)-2*c-2,8)) == d8); in case2()
H A Dmglobsol.cc530 umod[i] = posmod(first_u-ustep, auxs[i]); in search_range()
535 umodw = posmod(first_u-ustep,w); in search_range()
544 paw = posmod(aw, aux); in search_range()
545 pbw = posmod(bw, aux); in search_range()
546 pcw = posmod(cw, aux); in search_range()
547 pdw = posmod(dw, aux); in search_range()
548 pew = posmod(ew, aux); in search_range()
550 long ddddf= posmod(24*paw , aux); in search_range()
551 long dddf = posmod(36*paw + 6*pbw , aux); in search_range()
553 long df = posmod(paw+pbw+pcw+pdw, aux); in search_range()
[all …]
H A Dmarith.cc168 long a8 = posmod(a,8); // I2long(a%8); in sqrt_mod_2_power()
866 bigint posmod(const bigint& a, const bigint& b) in posmod() function
874 long posmod(const bigint& a, long b) in posmod() function
995 return table8[posmod(a,8)]; in chi2()
1000 return table4[posmod(a,4)]; in chi4()
1006 return table44[posmod(a,4)][posmod(b,4)]; in hilbert2()
1011 return table44[posmod(a,4)][posmod(b,4)]; in hilbert2()
1016 return table44[posmod(a,4)][posmod(b,4)]; in hilbert2()
1094 x1=posmod(x1,y1); in kronecker()
1100 if ((posmod(y1,4)==3) && (posmod(x1,4)==3)) s= -s; in kronecker()
[all …]
H A Dmwprocs.cc991 pd1 = posmod(d1 , aux); in search()
992 pd2 = posmod(d2 , aux); in search()
993 pd3 = posmod(d3 , aux); in search()
994 pd4 = posmod(d4 , aux); in search()
995 pd6 = posmod(d6 , aux); in search()
1148 pd1 = posmod(d1 , aux); in search_range()
1149 pd2 = posmod(d2 , aux); in search_range()
1150 pd3 = posmod(d3 , aux); in search_range()
1151 pd4 = posmod(d4 , aux); in search_range()
1152 pd6 = posmod(d6 , aux); in search_range()
[all …]
H A Dsieve_search.cc345 t1 = posmod(c[0],8); in init_f()
346 t2 = posmod(c[1],4) + 2*posmod(c[2],2); in init_f()
360 t1 = posmod(c[degree],8); in init_f()
361 t2 = posmod(c[degree-1],4); in init_f()
362 t3 = posmod(c[degree-2],2); in init_f()
389 t = posmod(c[degree],9); in init_f()
391 t2 = posmod(c[degree-1],3); in init_f()
405 t = posmod(c[degree],25); in init_f()
407 t2 = posmod(c[degree-1],5); in init_f()
421 t = posmod(c[degree],49); in init_f()
[all …]
H A Dmrank1.cc88 long a = posmod(q.geta(),auxs[i]); in qeps()
89 long H = posmod(q.getH(),auxs[i]); in qeps()
90 if(x2) H=posmod(hscalemod[i]*H,auxs[i]); in qeps()
427 long Imod4 = posmod(ii,4), Jmod4 = posmod(jj,4); in getquartics()
930 *amodi++ = posmod(a, *auxi); in gettype()
931 *astepmodi++ = posmod(astep,*auxi); in gettype()
995 *hstepmodi++ = posmod(hstep,*auxi); in gettype()
1142 else h0=posmod(h0,aux); in gettype()
1925 disc = posmod(-3*disc,aux2); in flag_init()
1938 long q3 = posmod(3*(h2-a2I16),aux2); in flag_init()
[all …]
H A Dsifter.cc120 for (j = 0; j < half_aux; j++) squares[i][posmod( j*j, aux )]=1; in sifter()
268 alpha = posmod(x - theta*z2 , p); in code()
270 beta = posmod((3*x*x-27*I*z2*z2) , p); in code()
277 alpha = posmod(x - theta*z2 , p); in code()
H A Dcurvered.cc493 else {mu=c4; v4=divide_out(mu,two); u = posmod(mu,64);} in setLocalRootNumber2()
499 else {mv=c6; v6=divide_out(mv,two); v = posmod(mv,64);} in setLocalRootNumber2()
518 long d1=posmod(tmp,64); in setLocalRootNumber2()
561 case 3: y1=posmod((u-(c6 >> 5)) , 16); in setLocalRootNumber2()
594 case 1: y1=posmod((u-2*v),64); in setLocalRootNumber2()
651 y1= posmod((u+(c6 >> 8)) , 16); in setLocalRootNumber2()
689 else {mu=c4; v4=divide_out(mu,three); u = posmod(mu,81);} in setLocalRootNumber3()
696 else {mv=c6; v6=divide_out(mv,three); v = posmod(mv,81);} in setLocalRootNumber3()
704 long d1=posmod(tmp,81); in setLocalRootNumber3()
710 long r6 = posmod(v,9); in setLocalRootNumber3()
[all …]
H A Darith.cc271 long posmod(long a, long b) in posmod() function
338 q=m; r=posmod(n,m); qq=0; rr=1; t=0; tt=0; a=r; b=1; in modrat()
401 return table8[posmod(a,8)]; in chi2()
406 return table4[posmod(a,4)]; in chi4()
414 return table44[posmod(a,4)][posmod(b,4)]; in hilbert2()
H A Dsymb.cc99 long c = s.cee(), d=posmod(s.dee(),s.modulus()/c); in add()
H A Dmlocsol.cc55 if(p==2) return posmod(a,8)==1; in psquare()
92 int odd4 = (posmod(oddgx,4)==1); in lemma7()
H A Dperiods.cc464 b = posmod(b,d); in compute()
465 c = posmod(c,d); in compute()
/dports/math/eclib/eclib-20210318/libsrc/eclib/
H A Dmarith.h38 bigint posmod(const bigint& a, const bigint& b); // a mod b in range 0--(b-1)
39 long posmod(const bigint& a, long b);
H A Darith.h140 long posmod(long a, long modb); /* ordinary modulus, but definitely positive */
/dports/devel/godot-tools/godot-demo-projects-8d9d58f112d8/3d/voxel/world/
H A Dvoxel_world.gd64 var sub_position = block_global_position.posmod(Chunk.CHUNK_SIZE)
73 var sub_position = block_global_position.posmod(Chunk.CHUNK_SIZE)
/dports/games/powder-toy/The-Powder-Toy-95.0/src/resampler/
H A Dresampler.cpp55 static inline int posmod(int x, int y) in posmod() function
412 n = posmod(j, src_x); in reflect()
426 n = posmod(j, src_x); in reflect()
/dports/devel/godot/godot-3.2.3-stable/core/math/
H A Dvector3.h111 _FORCE_INLINE_ Vector3 posmod(const real_t p_mod) const;
222 Vector3 Vector3::posmod(const real_t p_mod) const { in posmod() function
H A Dvector2.cpp129 Vector2 Vector2::posmod(const real_t p_mod) const { in posmod() function in Vector2
H A Dvector2.h77 Vector2 posmod(const real_t p_mod) const;
H A Dmath_funcs.h201 static _ALWAYS_INLINE_ int posmod(int p_x, int p_y) { in posmod() function
/dports/devel/godot-tools/godot-3.2.3-stable/core/math/
H A Dvector3.h111 _FORCE_INLINE_ Vector3 posmod(const real_t p_mod) const;
222 Vector3 Vector3::posmod(const real_t p_mod) const { in posmod() function
H A Dvector2.cpp129 Vector2 Vector2::posmod(const real_t p_mod) const { in posmod() function in Vector2
H A Dvector2.h77 Vector2 posmod(const real_t p_mod) const;
/dports/textproc/kf5-syntax-highlighting/syntax-highlighting-5.89.0/autotests/input/
H A Dtest.gd122 posmod(abc);
/dports/textproc/kf5-syntax-highlighting/syntax-highlighting-5.89.0/autotests/folding/
H A Dtest.gd.fold122 posmod(abc);

12