rem stringlengths 0 274k | add stringlengths 0 169k | context stringlengths 9 471k |
|---|---|---|
if (plift == 0 || (n > 24 && n%12 == 0 && Fp[np]==3 && !O[6]) || ((group&ga_non_wss) && omax == Fp[np])) | if (plift == 0 || ((group&ga_non_wss) && order == Fp[np])) | galoisanalysis(GEN T, struct galois_analysis *ga, long calcul_l){ ulong ltop=avma; long n,p; long i; long group,omax; /*TODO: complete the table to at least 200*/ const int prim_nonss_orders[]={36,48,56,60,72,75,80,96,108,0}; GEN F,Fp,Fe,Fpe,O; long np; long order,phi_order; long plift,nbmax,nbtest,deg; byte... |
p, O[1], group, deg, order); | plift, O[1], group, deg, order); | galoisanalysis(GEN T, struct galois_analysis *ga, long calcul_l){ ulong ltop=avma; long n,p; long i; long group,omax; /*TODO: complete the table to at least 200*/ const int prim_nonss_orders[]={36,48,56,60,72,75,80,96,108,0}; GEN F,Fp,Fe,Fpe,O; long np; long order,phi_order; long plift,nbmax,nbtest,deg; byte... |
return gerepileupto(av, gcopy(C)); | return gerepilecopy(av, C); | rnfequation0(GEN nf, GEN B, long flall){ ulong av = avma; long v,vpol,k,lA,lB; GEN cC,A,C,LPRS; if (typ(nf)==t_POL) A=nf; else { nf=checknf(nf); A=(GEN)nf[1]; } B = fix_relative_pol(nf,B,1); v = varn(A); lA = lgef(A); vpol= varn(B); lB = lgef(B); if (lA<=3 || lB<=3) err(constpoler,"rnfequation"); check_pol_i... |
cbach /= 2; | buch(GEN *pnf, double cbach, double cbach2, long nbrelpid, long flun, long PRECREG){ pari_sp av, av2; long N, R1, R2, RU, LIMC, LIMC2, lim, zc, i, jid; long nreldep, sfb_trials, need, precdouble = 0, precadd = 0; double drc, LOGD, LOGD2; GEN vecG, fu, zu, nf, D, A, W, R, Res, z, h, L_jid, PERM; GEN res, L, r... | |
av = avma; cache.end = cache.chk = cache.last = cache.base = NULL; | av = avma; cache.base = NULL; F.subFB = NULL; cbach /= 2; | buch(GEN *pnf, double cbach, double cbach2, long nbrelpid, long flun, long PRECREG){ pari_sp av, av2; long N, R1, R2, RU, LIMC, LIMC2, lim, zc, i, jid; long nreldep, sfb_trials, need, precdouble = 0, precadd = 0; double drc, LOGD, LOGD2; GEN vecG, fu, zu, nf, D, A, W, R, Res, z, h, L_jid, PERM; GEN res, L, r... |
avma = av; desallocate(&cache); | avma = av; if (cache.base) delete_cache(&cache); if (F.subFB) delete_FB(&F); | buch(GEN *pnf, double cbach, double cbach2, long nbrelpid, long flun, long PRECREG){ pari_sp av, av2; long N, R1, R2, RU, LIMC, LIMC2, lim, zc, i, jid; long nreldep, sfb_trials, need, precdouble = 0, precadd = 0; double drc, LOGD, LOGD2; GEN vecG, fu, zu, nf, D, A, W, R, Res, z, h, L_jid, PERM; GEN res, L, r... |
if (!F.pow) powFBgen(&F, &cache, nf); | if (F.newpow) powFBgen(&F, &cache, nf); | buch(GEN *pnf, double cbach, double cbach2, long nbrelpid, long flun, long PRECREG){ pari_sp av, av2; long N, R1, R2, RU, LIMC, LIMC2, lim, zc, i, jid; long nreldep, sfb_trials, need, precdouble = 0, precadd = 0; double drc, LOGD, LOGD2; GEN vecG, fu, zu, nf, D, A, W, R, Res, z, h, L_jid, PERM; GEN res, L, r... |
if (!F.pow) powFBgen(&F, NULL, nf); | if (F.newpow) powFBgen(&F, NULL, nf); | buch(GEN *pnf, double cbach, double cbach2, long nbrelpid, long flun, long PRECREG){ pari_sp av, av2; long N, R1, R2, RU, LIMC, LIMC2, lim, zc, i, jid; long nreldep, sfb_trials, need, precdouble = 0, precadd = 0; double drc, LOGD, LOGD2; GEN vecG, fu, zu, nf, D, A, W, R, Res, z, h, L_jid, PERM; GEN res, L, r... |
desallocate(&cache); gunclone(F.subFB); | delete_cache(&cache); delete_FB(&F); | buch(GEN *pnf, double cbach, double cbach2, long nbrelpid, long flun, long PRECREG){ pari_sp av, av2; long N, R1, R2, RU, LIMC, LIMC2, lim, zc, i, jid; long nreldep, sfb_trials, need, precdouble = 0, precadd = 0; double drc, LOGD, LOGD2; GEN vecG, fu, zu, nf, D, A, W, R, Res, z, h, L_jid, PERM; GEN res, L, r... |
KCZ2=i; KC2=ip; MAXRELSUP = min(50,4*KC); | KCZ2=i; KC2=ip; MAXRELSUP = min(50,4*KC) / SFB_MAX; | factorbasegen(GEN nf,long n2,long n){ byteptr delta=diffptr; long KC2,i,j,k,p,lon,ip,nor, N = lgef(nf[1])-3; GEN p2,p1,NormP,lfun; long prim[] = { evaltyp(t_INT)|m_evallg(3), evalsigne(1)|evallgefint(3),0 }; numfactorbase= (long*)gpmalloc(sizeof(long)*(n2+1)); factorbase = (long*)gpmalloc(sizeof(long)*(n2+1)); ... |
perm1 = sindexsort(y2); for (j=1; j<=n; j++) vperm[j] = perm[j]; for ( ; j<lv; j++) vperm[j] = perm1[j]; | perm1 = sindexsort(y2); avma = av; | subfactorbasegen(long N,long m,long minsfb,GEN vperm){ long av=avma,i,j, lv=lg(vectbase),s=0,s1=0,n=0,ss=0,z=0; GEN y1,y2,perm,perm1,P,Q; double prod; y1 = cgetg(lv,t_COL); y2 = cgetg(lv,t_COL); for (i=1,P=(GEN)vectbase[i];;P=Q) { /* we'll sort ideals by norm (flag excluded ideals with "zero") */ long e = ito... |
avma = av; subfactorbase=cgetg(n+1,t_COL); | if (vperm) { for (j=1; j<=n; j++) vperm[j] = perm[j]; for ( ; j<lv; j++) vperm[j] = perm1[j]; } subfactorbase=cgetg(n+1,t_COL); for (j=1; j<=n; j++) subfactorbase[j] = vectbase[perm[j]]; | subfactorbasegen(long N,long m,long minsfb,GEN vperm){ long av=avma,i,j, lv=lg(vectbase),s=0,s1=0,n=0,ss=0,z=0; GEN y1,y2,perm,perm1,P,Q; double prod; y1 = cgetg(lv,t_COL); y2 = cgetg(lv,t_COL); for (i=1,P=(GEN)vectbase[i];;P=Q) { /* we'll sort ideals by norm (flag excluded ideals with "zero") */ long e = ito... |
for (j=1; j<=n; j++) subfactorbase[j] = vectbase[vperm[j]]; | subfactorbasegen(long N,long m,long minsfb,GEN vperm){ long av=avma,i,j, lv=lg(vectbase),s=0,s1=0,n=0,ss=0,z=0; GEN y1,y2,perm,perm1,P,Q; double prod; y1 = cgetg(lv,t_COL); y2 = cgetg(lv,t_COL); for (i=1,P=(GEN)vectbase[i];;P=Q) { /* we'll sort ideals by norm (flag excluded ideals with "zero") */ long e = ito... | |
GEN M, basden, G2, u, u0 = NULL; | GEN ro, M, basden, G2, u, u0 = NULL; | get_red_T2(GEN x, GEN *polr, GEN base, long r1, long prec){ GEN M, basden, G2, u, u0 = NULL; gpmem_t av; long i; basden = get_bas_den(base); av = avma; if (!*polr) *polr = get_roots(x,r1,prec); for (i=1; ; i++) { M = make_M(basden, *polr); G2 = make_Cholevsky_T2(M, r1, prec); if (u0) G2 = gmul(G2, u0);... |
if (!*polr) *polr = get_roots(x,r1,prec); | get_red_T2(GEN x, GEN *polr, GEN base, long r1, long prec){ GEN M, basden, G2, u, u0 = NULL; gpmem_t av; long i; basden = get_bas_den(base); av = avma; if (!*polr) *polr = get_roots(x,r1,prec); for (i=1; ; i++) { M = make_M(basden, *polr); G2 = make_Cholevsky_T2(M, r1, prec); if (u0) G2 = gmul(G2, u0);... | |
M = make_M(basden, *polr); | ro = get_roots(x,r1,prec); M = make_M(basden, ro); | get_red_T2(GEN x, GEN *polr, GEN base, long r1, long prec){ GEN M, basden, G2, u, u0 = NULL; gpmem_t av; long i; basden = get_bas_den(base); av = avma; if (!*polr) *polr = get_roots(x,r1,prec); for (i=1; ; i++) { M = make_M(basden, *polr); G2 = make_Cholevsky_T2(M, r1, prec); if (u0) G2 = gmul(G2, u0);... |
if (typ(u) == t_MAT) return u0? gmul(u0,u): u; | if (typ(u) == t_MAT) break; | get_red_T2(GEN x, GEN *polr, GEN base, long r1, long prec){ GEN M, basden, G2, u, u0 = NULL; gpmem_t av; long i; basden = get_bas_den(base); av = avma; if (!*polr) *polr = get_roots(x,r1,prec); for (i=1; ; i++) { M = make_M(basden, *polr); G2 = make_Cholevsky_T2(M, r1, prec); if (u0) G2 = gmul(G2, u0);... |
*polr = get_roots(x,r1, prec); | get_red_T2(GEN x, GEN *polr, GEN base, long r1, long prec){ GEN M, basden, G2, u, u0 = NULL; gpmem_t av; long i; basden = get_bas_den(base); av = avma; if (!*polr) *polr = get_roots(x,r1,prec); for (i=1; ; i++) { M = make_M(basden, *polr); G2 = make_Cholevsky_T2(M, r1, prec); if (u0) G2 = gmul(G2, u0);... | |
if (polr) *polr = ro; return u0? gmul(u0,u): u; | get_red_T2(GEN x, GEN *polr, GEN base, long r1, long prec){ GEN M, basden, G2, u, u0 = NULL; gpmem_t av; long i; basden = get_bas_den(base); av = avma; if (!*polr) *polr = get_roots(x,r1,prec); for (i=1; ; i++) { M = make_M(basden, *polr); G2 = make_Cholevsky_T2(M, r1, prec); if (u0) G2 = gmul(G2, u0);... | |
buchgenfu(GEN g1,GEN g2,GEN g3,GEN g4, GEN g5,long l1,long l2,long prec) { return buchall(g1,gtodouble(g2),gtodouble(g3),l1,nf_UNITS,prec); } | buchgenfu(B_ARGS) { return B_CALL(nf_UNITS); } | buchgenfu(GEN g1,GEN g2,GEN g3,GEN g4, GEN g5,long l1,long l2,long prec) { return buchall(g1,gtodouble(g2),gtodouble(g3),l1,nf_UNITS,prec);} |
long i,j,ind, n = min(lg(T2),9); | long i,j,ind, n = min(lg(T2)-1,9); | compute_vecT2(GEN nf,long prec){ GEN vecT2, M = gmael(nf,5,1), MC = gmael(nf,5,2), T2 = gmael(nf,5,3); long i,j,ind, n = min(lg(T2),9); vecT2=cgetg(1 + n*(n+1)/2,t_VEC); if (nfgetprec(nf) > prec) { M = gprec_w(M,prec); MC= gprec_w(MC,prec); T2= gprec_w(T2,prec); } for (ind=j=1; j<=n; j++) for (i=1; i... |
GEN csurn = gdivgs(c1, n), nsurc = ginv(csurn); GEN lncsurn = glog(csurn, prec2); | GEN csurn, nsurc, lncsurn; | GetST(GEN dataCR, long prec){ const long cl = lg(dataCR) - 1; ulong av, av1, av2; long ncond, n, j, k, jc, nmax, prec2, i0, r1, r2; GEN bnr, nf, racpi, powracpi; GEN rep, vChar, N0, C, T, S, an, degs, p1; if (DEBUGLEVEL) timer2(); /* allocate memory for answer */ rep = cgetg(3, t_VEC); S = cgetg(cl+1, t_VEC); ... |
FreeMat(matan, NN); avma = av2; | FreeMat(matan, NN); matan = NULL; avma = av2; | GetST(GEN dataCR, long prec){ const long cl = lg(dataCR) - 1; ulong av, av1, av2; long ncond, n, j, k, jc, nmax, prec2, i0, r1, r2; GEN bnr, nf, racpi, powracpi; GEN rep, vChar, N0, C, T, S, an, degs, p1; if (DEBUGLEVEL) timer2(); /* allocate memory for answer */ rep = cgetg(3, t_VEC); S = cgetg(cl+1, t_VEC); ... |
rtems_unsigned32 *inttab = (rtems_unsigned32 *)&INTERRUPT_VECTOR; rtems_unsigned32 *intvec = (rtems_unsigned32 *)BSP_MEM_ADDR_ESRAM; | uint32_t *inttab = (uint32_t*)&INTERRUPT_VECTOR; uint32_t *intvec = (uint32_t*)BSP_MEM_ADDR_ESRAM; | Init5206e(void){ extern void CopyDataClearBSSAndStart(unsigned long ramsize); /* Set Module Base Address register */ m68k_set_mbar((MBAR & MCF5206E_MBAR_BA) | MCF5206E_MBAR_V); /* Set System Protection Control Register (SYPCR): * Bus Monitor Enable, Bus Monitor Timing = 1024 clocks, * Software... |
D = diagonal(smith(hnf(MrC))); MQ = concatsp(gmul(H, D), DA); | (void)smithall(hnf(MrC), &U, NULL); MQ = concatsp(gmul(H, U), DA); | InitQuotient0(GEN DA, GEN C){ GEN D, MQ, MrC, H, U, rep; H = gcmp0(C)? DA: C; MrC = gauss(H, DA); D = diagonal(smith(hnf(MrC))); MQ = concatsp(gmul(H, D), DA); D = smithall(hnf(MQ), &U, NULL); rep = cgetg(5, t_VEC); rep[1] = (long)dethnf_i(D); rep[2] = (long)mattodiagonal(D); rep[3] = lcopy(U); rep[4] = l... |
for (i = 1; i < nb; i++) | setlg(subgrp, nb); for (i = 1; i < nb; i++) | ComputeIndex2Subgroup(GEN bnr, GEN C){ ulong av = avma; long nb, i; GEN D, Mr, U, T, subgrp; disable_dbg(0); Mr = diagonal(gmael(bnr, 5, 2)); D = smithall(gauss(C, Mr), &U, NULL); T = gmul(C,ginv(U)); subgrp = subgrouplist(D, gdeux); nb = lg(subgrp) - 1; for (i = 1; i < nb; i++) /* skip Id which comes last *... |
b = centermod(b, gcoeff(x,1,1)); | ideal_two_elt2(GEN nf, GEN x, GEN a){ pari_sp av = avma; GEN cx, b; nf = checknf(nf); a = _algtobasis(nf, a); x = idealhermite_aux(nf,x); if (gcmp0(x)) { if (!gcmp0(a)) err(talker,"element not in ideal in ideal_two_elt2"); avma = av; return gcopy(a); } x = Q_primitive_part(x, &cx); if (cx) a = gdiv(a, c... | |
long av=avma,tetpil,i,j,k,n,N, vpol = varn(pol); | ulong av = avma; long i,j,k,n,N, vpol = varn(pol); | rnfpolred(GEN nf, GEN pol, long prec){ long av=avma,tetpil,i,j,k,n,N, vpol = varn(pol); GEN id,id2,newid,newor,p1,p2,al,newpol,w,z; GEN bnf,zk,newideals,ideals,order,neworder; if (typ(pol)!=t_POL) err(typeer,"rnfpolred"); if (typ(nf)!=t_VEC) err(idealer1); switch(lg(nf)) { case 10: bnf = NULL; break; case ... |
tetpil=avma; return gerepile(av,tetpil,gcopy(w)); | return gerepilecopy(av,w); | rnfpolred(GEN nf, GEN pol, long prec){ long av=avma,tetpil,i,j,k,n,N, vpol = varn(pol); GEN id,id2,newid,newor,p1,p2,al,newpol,w,z; GEN bnf,zk,newideals,ideals,order,neworder; if (typ(pol)!=t_POL) err(typeer,"rnfpolred"); if (typ(nf)!=t_VEC) err(idealer1); switch(lg(nf)) { case 10: bnf = NULL; break; case ... |
isatty (int fd) | int isatty( int fd ) | isatty (int fd){ struct stat buf; if (fstat (fd, &buf) < 0) return 0; if (S_ISCHR (buf.st_mode)) return 1; return 0;} |
y = cgetr(l); av = avma; t = exp1r_abs(gmul2n(x,1)); affrr(divrr(t, addsr(2,t)), y); avma = av; | av = avma; t = exp1r_abs(gmul2n(x,1)); return gerepileuptoleaf(av, divrr(t, addsr(2,t))); | mpth(GEN x){ long l, s = signe(x); pari_sp av; GEN y, t; if (!s) return realzero_bit(expo(x)); l = lg(x); if (cmprs(x, bit_accuracy(l)) >= 0) { y = realun(l); } else { y = cgetr(l); av = avma; t = exp1r_abs(gmul2n(x,1)); /* exp(|2x|) - 1 */ affrr(divrr(t, addsr(2,t)), y); avma = av; } if (s < 0)... |
if (l > 0) | la = 3.; if (st > 1 && l > 0) | gammanew(GEN s0, int dolog, long prec){ GEN s, u, a, y, res, tes, sig, invn2, p1, nnx, pi, sqrtpi2; long i, lim, nn; pari_sp av, av2, avlim; int funeq = 0; if (DEBUGLEVEL) (void)timer2(); s = trans_fix_arg(&prec,&s0,&sig,&av,&res); if (signe(sig) <= 0 || expo(sig) < -1) { if (typ(s) == t_COMPLEX && gexpo((GE... |
else la = 3.; | gammanew(GEN s0, int dolog, long prec){ GEN s, u, a, y, res, tes, sig, invn2, p1, nnx, pi, sqrtpi2; long i, lim, nn; pari_sp av, av2, avlim; int funeq = 0; if (DEBUGLEVEL) (void)timer2(); s = trans_fix_arg(&prec,&s0,&sig,&av,&res); if (signe(sig) <= 0 || expo(sig) < -1) { if (typ(s) == t_COMPLEX && gexpo((GE... | |
tes = divrs2_safe(bernreal(2*lim,prec), 2*lim-1); | tes = divrsns(bernreal(2*lim,prec), 2*lim-1); | gammanew(GEN s0, int dolog, long prec){ GEN s, u, a, y, res, tes, sig, invn2, p1, nnx, pi, sqrtpi2; long i, lim, nn; pari_sp av, av2, avlim; int funeq = 0; if (DEBUGLEVEL) (void)timer2(); s = trans_fix_arg(&prec,&s0,&sig,&av,&res); if (signe(sig) <= 0 || expo(sig) < -1) { if (typ(s) == t_COMPLEX && gexpo((GE... |
u = divrs2_safe(bernreal(i,prec), i-1); | u = divrsns(bernreal(i,prec), i-1); | gammanew(GEN s0, int dolog, long prec){ GEN s, u, a, y, res, tes, sig, invn2, p1, nnx, pi, sqrtpi2; long i, lim, nn; pari_sp av, av2, avlim; int funeq = 0; if (DEBUGLEVEL) (void)timer2(); s = trans_fix_arg(&prec,&s0,&sig,&av,&res); if (signe(sig) <= 0 || expo(sig) < -1) { if (typ(s) == t_COMPLEX && gexpo((GE... |
sqrtu2_1(GEN a) | sqrtu2_1(ulong *a) | sqrtu2_1(GEN a){ double beta = sqrt((double)(ulong)a[0]); /* 0.707... ~ 1/sqrt(2) */ return (ulong)(beta * ((1UL << BITS_IN_HALFULONG) * 0.707106781186547524));} |
double beta = sqrt((double)(ulong)a[0]); | double beta = sqrt((double)a[0]); | sqrtu2_1(GEN a){ double beta = sqrt((double)(ulong)a[0]); /* 0.707... ~ 1/sqrt(2) */ return (ulong)(beta * ((1UL << BITS_IN_HALFULONG) * 0.707106781186547524));} |
xl = (GEN)x[l]; hl = (GEN*)h[l]; xk = (GEN)x[k]; hk = (GEN*)h[k]; | xl = (GEN) x[l]; xk = (GEN) x[k]; if (h) { hl = (GEN*)h[l]; hk = (GEN*)h[k]; } | REDI(long k, long l, GEN x, GEN h, GEN L, GEN B, long K, int gram){ long i,lx; GEN q = truedvmdii(addii(B,shifti(gcoeff(L,k,l),1)), shifti(B,1), NULL); GEN *hk,*hl,xk,xl; if (!signe(q)) return; q = negi(q); xl = (GEN)x[l]; hl = (GEN*)h[l]; xk = (GEN)x[k]; hk = (GEN*)h[k]; lx = lg(xl); if (is_pm1(q)) { if (... |
for (i=1;i<=K;i++) hk[i] = addii(hk[i],hl[i]); | if (h) for (i=1;i<=K;i++) hk[i] = addii(hk[i],hl[i]); | REDI(long k, long l, GEN x, GEN h, GEN L, GEN B, long K, int gram){ long i,lx; GEN q = truedvmdii(addii(B,shifti(gcoeff(L,k,l),1)), shifti(B,1), NULL); GEN *hk,*hl,xk,xl; if (!signe(q)) return; q = negi(q); xl = (GEN)x[l]; hl = (GEN*)h[l]; xk = (GEN)x[k]; hk = (GEN*)h[k]; lx = lg(xl); if (is_pm1(q)) { if (... |
for (i=1;i<=K;i++) hk[i] = subii(hk[i],hl[i]); | if (h) for (i=1;i<=K;i++) hk[i] = subii(hk[i],hl[i]); | REDI(long k, long l, GEN x, GEN h, GEN L, GEN B, long K, int gram){ long i,lx; GEN q = truedvmdii(addii(B,shifti(gcoeff(L,k,l),1)), shifti(B,1), NULL); GEN *hk,*hl,xk,xl; if (!signe(q)) return; q = negi(q); xl = (GEN)x[l]; hl = (GEN*)h[l]; xk = (GEN)x[k]; hk = (GEN*)h[k]; lx = lg(xl); if (is_pm1(q)) { if (... |
for(i=1;i<=K;i++) hk[i] = addii(hk[i],mulii(q,hl[i])); | if (h) for(i=1;i<=K;i++) hk[i] = addii(hk[i],mulii(q,hl[i])); | REDI(long k, long l, GEN x, GEN h, GEN L, GEN B, long K, int gram){ long i,lx; GEN q = truedvmdii(addii(B,shifti(gcoeff(L,k,l),1)), shifti(B,1), NULL); GEN *hk,*hl,xk,xl; if (!signe(q)) return; q = negi(q); xl = (GEN)x[l]; hl = (GEN*)h[l]; xk = (GEN)x[k]; hk = (GEN*)h[k]; lx = lg(xl); if (is_pm1(q)) { if (... |
swap(h[k-1], h[k]); | if (h) swap(h[k-1], h[k]); | do_SWAPI(GEN x, GEN h, GEN L, GEN B, long kmax, long k, long alpha, GEN fl, int gram){ GEN la,la2,p1,Bk; long i, j, lx; gpmem_t av; if (!fl[k-1]) return 0; av = avma; la = gcoeff(L,k,k-1); la2 = sqri(la); Bk = (GEN)B[k]; if (fl[k]) { GEN q; if (!alpha) return 0; /* only swap non-kernel + kernel v... |
vz = NULL; | return NULL; | init_teich(ulong p, GEN q, long prec){ GEN vz, gp = utoi(p); long av = avma, j; if (p == 2UL) vz = NULL; else { /* primitive (p-1)-th root of 1 */ GEN z, z0 = padicsqrtnlift(gun, utoi(p-1), Fp_gener(gp), gp, prec); z = z0; vz = cgetg(p, t_VEC); for (j = 1; j < (long)p-2; j++) { vz[ umodiu(z,... |
while (isdigit(*cp)) | while (isdigit((int)*cp)) | loc_aton(ascii, binary) const char *ascii; u_char *binary;{ const char *cp, *maxcp; u_char *bcp; u_int32_t latit = 0, longit = 0, alt = 0; u_int32_t lltemp1 = 0, lltemp2 = 0; int altmeters = 0, altfrac = 0, altsign = 1; u_int8_t hp = 0x16; /* default = 1e6 cm = 10000.00m = 10km */ u_int8_t vp = 0x13; /* default = 1e3 c... |
if (isdigit(*cp)) { | if (isdigit((int)*cp)) { | loc_aton(ascii, binary) const char *ascii; u_char *binary;{ const char *cp, *maxcp; u_char *bcp; u_int32_t latit = 0, longit = 0, alt = 0; u_int32_t lltemp1 = 0, lltemp2 = 0; int altmeters = 0, altfrac = 0, altsign = 1; u_int8_t hp = 0x16; /* default = 1e6 cm = 10000.00m = 10km */ u_int8_t vp = 0x13; /* default = 1e3 c... |
while (!isspace(*cp) && (cp < maxcp)) | while (!isspace((int)*cp) && (cp < maxcp)) | loc_aton(ascii, binary) const char *ascii; u_char *binary;{ const char *cp, *maxcp; u_char *bcp; u_int32_t latit = 0, longit = 0, alt = 0; u_int32_t lltemp1 = 0, lltemp2 = 0; int altmeters = 0, altfrac = 0, altsign = 1; u_int8_t hp = 0x16; /* default = 1e6 cm = 10000.00m = 10km */ u_int8_t vp = 0x13; /* default = 1e3 c... |
while (isspace(*cp) && (cp < maxcp)) | while (isspace((int)*cp) && (cp < maxcp)) | loc_aton(ascii, binary) const char *ascii; u_char *binary;{ const char *cp, *maxcp; u_char *bcp; u_int32_t latit = 0, longit = 0, alt = 0; u_int32_t lltemp1 = 0, lltemp2 = 0; int altmeters = 0, altfrac = 0, altsign = 1; u_int8_t hp = 0x16; /* default = 1e6 cm = 10000.00m = 10km */ u_int8_t vp = 0x13; /* default = 1e3 c... |
static char buf[20]; | void __assert(const char *file, int line, const char *msg){ static char buf[20]; static char exit_msg[] = "EXECUTIVE SHUTDOWN! Any key to reboot..."; static char assert_msg[] = "assert failed: "; unsigned char ch; const unsigned char *cp; /* * Note we cannot call exit or printf from here, * asser... | |
static char assert_msg[] = "assert failed: "; | void __assert(const char *file, int line, const char *msg){ static char buf[20]; static char exit_msg[] = "EXECUTIVE SHUTDOWN! Any key to reboot..."; static char assert_msg[] = "assert failed: "; unsigned char ch; const unsigned char *cp; /* * Note we cannot call exit or printf from here, * asser... | |
if(PC386ConsolePort == PC386_CONSOLE_PORT_CONSOLE) { printk("\nassert failed: %s: ", file); printk("%d: ", line); printk("%s\n\n", msg); printk(exit_msg); while(!_IBMPC_scankey(&ch)); printk("\n\n"); } else { PC386_uart_intr_ctrl(PC386ConsolePort, PC386_UART_INTR_CTRL_DISABLE); PC386_uart_polled_write(PC386ConsolePort... | printk("\nassert failed: %s: ", file); printk("%d: ", line); printk("%s\n\n", msg); printk(exit_msg); ch = BSP_poll_char(); printk("\n\n"); | void __assert(const char *file, int line, const char *msg){ static char buf[20]; static char exit_msg[] = "EXECUTIVE SHUTDOWN! Any key to reboot..."; static char assert_msg[] = "assert failed: "; unsigned char ch; const unsigned char *cp; /* * Note we cannot call exit or printf from here, * asser... |
u_red_cyclo2n_ip(GEN x, int n) | u_red_cyclo2n_ip(GEN x, long n) | u_red_cyclo2n_ip(GEN x, int n){ long i, pow2 = 1<<(n-1); GEN z; for (i = lg(x)-1; i>pow2; i--) x[i-pow2] -= x[i]; for (; i>0; i--) if (x[i]) break; i += 2; z = cgetg(i, t_POL); z[1] = evalsigne(1); for (i--; i>=2; i--) z[i] = lstoi(x[i-1]); return z;} |
const int efin = lg(taba)-1, lv = R->lv; | const long efin = lg(taba)-1, lv = R->lv; | _powpolmod(Cache *C, GEN jac, Red *R, GEN (*_sqr)(GEN, Red *)){ const GEN taba = C->aall; const GEN tabt = C->tall; const int efin = lg(taba)-1, lv = R->lv; GEN vz, res = jac, pol2 = _sqr(res, R); int f; pari_sp av; vz = cgetg(lv+1, t_VEC); vz[1] = (long)res; for (f=2; f<=lv; f++) vz[f] = (long)_mul((GEN)vz[f-1... |
int f; | long f; | _powpolmod(Cache *C, GEN jac, Red *R, GEN (*_sqr)(GEN, Red *)){ const GEN taba = C->aall; const GEN tabt = C->tall; const int efin = lg(taba)-1, lv = R->lv; GEN vz, res = jac, pol2 = _sqr(res, R); int f; pari_sp av; vz = cgetg(lv+1, t_VEC); vz[1] = (long)res; for (f=2; f<=lv; f++) vz[f] = (long)_mul((GEN)vz[f-1... |
int tf = tabt[f]; | long tf = tabt[f]; | _powpolmod(Cache *C, GEN jac, Red *R, GEN (*_sqr)(GEN, Red *)){ const GEN taba = C->aall; const GEN tabt = C->tall; const int efin = lg(taba)-1, lv = R->lv; GEN vz, res = jac, pol2 = _sqr(res, R); int f; pari_sp av; vz = cgetg(lv+1, t_VEC); vz[1] = (long)res; for (f=2; f<=lv; f++) vz[f] = (long)_mul((GEN)vz[f-1... |
get_jac2(GEN N, ulong q, int k, GEN *j2q, GEN *j3q) | get_jac2(GEN N, ulong q, long k, GEN *j2q, GEN *j3q) | get_jac2(GEN N, ulong q, int k, GEN *j2q, GEN *j3q){ GEN jpq, vpk, tabf, tabg; ulong x, pk, i, qm3s2; if (k == 1) return NULL; compute_fg(q,0, &tabf,&tabg); pk = 1 << k;; vpk = vecsmall_const(pk, 0); qm3s2 = (q-3)>>1; for (x=1; x<=qm3s2; x++) vpk[ tabg[x]%pk + 1 ] += 2; vpk[ (2*tabf[qm3s2+1])%pk + 1 ]++; jpq ... |
int lv, lfa, pk, p, e, i, k; | long lv, lfa, pk, p, e, i, k; | calcglobs(Red *R, ulong t, long *pltab, GEN *pP){ GEN fat, P, E, PE; int lv, lfa, pk, p, e, i, k; long ltab, b; Cache **pC; b = bit_accuracy(lgefint(R->N)) - 1; while ( !bittest(R->N,b) ) b--; b++; k = 3; while (((k+1)*(k+2) << (k-1)) < b) k++; *pltab = ltab = (b/k) + 2; R->k = k; R->lv = 1 << (k-1); R->ma... |
fat = factoru(t); | fat = factoru_pow(t); | calcglobs(Red *R, ulong t, long *pltab, GEN *pP){ GEN fat, P, E, PE; int lv, lfa, pk, p, e, i, k; long ltab, b; Cache **pC; b = bit_accuracy(lgefint(R->N)) - 1; while ( !bittest(R->N,b) ) b--; b++; k = 3; while (((k+1)*(k+2) << (k-1)) < b) k++; *pltab = ltab = (b/k) + 2; R->k = k; R->lv = 1 << (k-1); R->ma... |
tmp = SERF_BUCKET_SIMPLE_STRING_LEN(in, inl, ctx->sink->allocator); | static int bio_bucket_write(BIO *bio, const char *in, int inl){ serf_ssl_context_t *ctx = bio->ptr; serf_bucket_t *tmp; /* Do we need to copy this data? */ tmp = SERF_BUCKET_SIMPLE_STRING_LEN(in, inl, ctx->sink->allocator); serf_bucket_aggregate_append(ctx->sink, tm... | |
look_eta2(int k, GEN z) | look_eta2(long k, GEN z) | look_eta2(int k, GEN z){ long d, s; if (typ(z) != t_POL) d = 0; /* t_INT */ else { if (!ismonome(z)) return -1; d = degpol(z); z = (GEN)z[d+2]; /* leading term */ } s = signe(z); if (!s || !is_pm1(z)) return -1; return (s > 0)? d: d + (1<<(k-1));} |
step4a(Cache *C, Red *R, ulong q, int p, int k, GEN jpq) | step4a(Cache *C, Red *R, ulong q, long p, long k, GEN jpq) | step4a(Cache *C, Red *R, ulong q, int p, int k, GEN jpq){ const int pk = u_pow(p,k); int ind; GEN s1, s2, s3; if (!jpq) { GEN tabf, tabg; compute_fg(q,1, &tabf,&tabg); jpq = get_jac(C, q, pk, tabf, tabg); } s1 = autvec_TH(pk, jpq, C->E, C->cyc); s2 = powpolmod(C,R, p,k, s1); s3 = autvec_AL(pk, jpq, ... |
const int pk = u_pow(p,k); int ind; | const long pk = npownn(p,k); long ind; | step4a(Cache *C, Red *R, ulong q, int p, int k, GEN jpq){ const int pk = u_pow(p,k); int ind; GEN s1, s2, s3; if (!jpq) { GEN tabf, tabg; compute_fg(q,1, &tabf,&tabg); jpq = get_jac(C, q, pk, tabf, tabg); } s1 = autvec_TH(pk, jpq, C->E, C->cyc); s2 = powpolmod(C,R, p,k, s1); s3 = autvec_AL(pk, jpq, ... |
step4b(Cache *C, Red *R, ulong q, int k) | step4b(Cache *C, Red *R, ulong q, long k) | step4b(Cache *C, Red *R, ulong q, int k){ const int pk = 1 << k; int ind; GEN s1, s2, s3, j2q, j3q; (void)get_jac2(R->N,q,k, &j2q,&j3q); s1 = autvec_TH(pk, j3q, C->E, C->cyc); s2 = powpolmod(C,R, 2,k, s1); s3 = autvec_AL(pk, j3q, C->E, R); s3 = _red(gmul(s3,s2), R); if (j2q) s3 = _red(gmul(j2q, s3), R); ind =... |
const int pk = 1 << k; int ind; | const long pk = 1 << k; long ind; | step4b(Cache *C, Red *R, ulong q, int k){ const int pk = 1 << k; int ind; GEN s1, s2, s3, j2q, j3q; (void)get_jac2(R->N,q,k, &j2q,&j3q); s1 = autvec_TH(pk, j3q, C->E, C->cyc); s2 = powpolmod(C,R, 2,k, s1); s3 = autvec_AL(pk, j3q, C->E, R); s3 = _red(gmul(s3,s2), R); if (j2q) s3 = _red(gmul(j2q, s3), R); ind =... |
int ind; | long ind; | step4c(Cache *C, Red *R, ulong q){ int ind; GEN s0,s1,s3, jpq = get_jac2(R->N,q,2, NULL,NULL); s0 = sqrmod4(jpq, R); s1 = gmulsg(q,s0); s3 = powpolmod(C,R, 2,2, s1); if (mod4(R->N) == 3) s3 = _red(gmul(s0,s3), R); ind = look_eta2(2, s3); if (ind < 0) return -1; if ((ind&1)==0) return 0; if (DEBUGLEVEL>2) C->c... |
step5(Cache **pC, Red *R, int p, GEN et, ulong ltab) | step5(Cache **pC, Red *R, long p, GEN et, ulong ltab) | step5(Cache **pC, Red *R, int p, GEN et, ulong ltab){ ulong ct = 1, q; int pk, k, fl = -1; byteptr d = diffptr+2; Cache *C, *Cp; for (q = 3; *d; ) { if (q%p != 1 || umodiu(et,q) == 0) goto repeat; if (umodiu(R->N,q) == 0) return -1; k = u_lval(q-1, p); pk = u_pow(p,k); if (pk < lg(pC) && pC[pk]) { ... |
int pk, k, fl = -1; | long pk, k, fl = -1; | step5(Cache **pC, Red *R, int p, GEN et, ulong ltab){ ulong ct = 1, q; int pk, k, fl = -1; byteptr d = diffptr+2; Cache *C, *Cp; for (q = 3; *d; ) { if (q%p != 1 || umodiu(et,q) == 0) goto repeat; if (umodiu(R->N,q) == 0) return -1; k = u_lval(q-1, p); pk = u_pow(p,k); if (pk < lg(pC) && pC[pk]) { ... |
pk = u_pow(p,k); | pk = npownn(p,k); | step5(Cache **pC, Red *R, int p, GEN et, ulong ltab){ ulong ct = 1, q; int pk, k, fl = -1; byteptr d = diffptr+2; Cache *C, *Cp; for (q = 3; *d; ) { if (q%p != 1 || umodiu(et,q) == 0) goto repeat; if (umodiu(R->N,q) == 0) return -1; k = u_lval(q-1, p); pk = u_pow(p,k); if (pk < lg(pC) && pC[pk]) { ... |
if (fl == -1) return (int)(-q); | if (fl == -1) return (long)(-q); | step5(Cache **pC, Red *R, int p, GEN et, ulong ltab){ ulong ct = 1, q; int pk, k, fl = -1; byteptr d = diffptr+2; Cache *C, *Cp; for (q = 3; *d; ) { if (q%p != 1 || umodiu(et,q) == 0) goto repeat; if (umodiu(R->N,q) == 0) return -1; k = u_lval(q-1, p); pk = u_pow(p,k); if (pk < lg(pC) && pC[pk]) { ... |
errno = ENOSYS; return -1; | off_t status; status = lseek( dirp->dd_fd, loc, SEEK_SET ); if( status == -1 ) return; dirp->dd_loc = 0; | void seekdir( DIR *dirp, long loc){ errno = ENOSYS; return -1;} |
_Thread_Enable_dispatch(); | rtems_status_code rtems_timer_server_fire_after( Objects_Id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data){ Timer_Control *the_timer; Objects_Locations location; ISR_Level level... | |
if (config->hardware_address != NULL) memcpy (sc->arpcom.ac_enaddr, config->hardware_address, ETHER_ADDR_LEN); else memset (sc->arpcom.ac_enaddr, 0, ETHER_ADDR_LEN); | rtems_ne_driver_attach (struct rtems_bsdnet_ifconfig *config){ int i; struct ne_softc *sc; struct ifnet *ifp; int mtu; /* Find a free driver. */ sc = NULL; for (i = 0; i < NNEDRIVER; ++i) { sc = &ne_softc[i]; ifp = &sc->arpcom.ac_if; if (ifp->if_softc == NULL) break; } if (sc == NULL) { print... | |
if (config->hardware_address != NULL) memcpy (sc->arpcom.ac_enaddr, config->hardware_address, ETHER_ADDR_LEN); else { unsigned char prom[16]; int ia; outport_byte (sc->port + CMDR, MSK_PG0 | MSK_RD2 | MSK_STP); outport_byte (sc->port + DCR, MSK_FT10 | MSK_BMS | MSK_WTS); outport_byte (sc->port + RBCR0, 0); outport_b... | rtems_ne_driver_attach (struct rtems_bsdnet_ifconfig *config){ int i; struct ne_softc *sc; struct ifnet *ifp; int mtu; /* Find a free driver. */ sc = NULL; for (i = 0; i < NNEDRIVER; ++i) { sc = &ne_softc[i]; ifp = &sc->arpcom.ac_if; if (ifp->if_softc == NULL) break; } if (sc == NULL) { print... | |
Flx_shift(GEN a, long n, ulong p) | Flx_shift(GEN a, long n) | Flx_shift(GEN a, long n, ulong p){ long i, l = lg(a); GEN b = cgetg_copy(l+n, a); b[1] = a[1]; for (i=0; i<n; i++) b[2+i] = 0; for (i=2; i<l; i++) b[i+n] = a[i]; return b;} |
GEN b = cgetg_copy(l+n, a); | GEN b; if (l==2) return vecsmall_copy(a); b = cgetg(l+n, t_VECSMALL); | Flx_shift(GEN a, long n, ulong p){ long i, l = lg(a); GEN b = cgetg_copy(l+n, a); b[1] = a[1]; for (i=0; i<n; i++) b[2+i] = 0; for (i=2; i<l; i++) b[i+n] = a[i]; return b;} |
static GEN _FlxqX_mul(GEN a,GEN b){return FlxqX_mul(a,b,Tmodulo,modulo);} | static GEN _FlxqX_mul(void *data,GEN a,GEN b) { struct _FlxqX *d=(struct _FlxqX*)data; return FlxqX_mul(a,b,d->T,d->p); } | static GEN _FlxqX_mul(GEN a,GEN b){return FlxqX_mul(a,b,Tmodulo,modulo);} |
modulo = p; Tmodulo = T; return divide_conquer_prod(V, &_FlxqX_mul); | struct _FlxqX d; d.p=p; d.T=T; return divide_conquer_assoc(V, &_FlxqX_mul, (void*)&d); | FlxqXV_prod(GEN V, GEN T, ulong p){ modulo = p; Tmodulo = T; return divide_conquer_prod(V, &_FlxqX_mul);} |
return Flx_renormalize(x, i+1); | return FlxX_renormalize(x, i+1); | FlxqX_from_Kronecker(GEN z, GEN T, ulong p){ long i,j,lx,l, N = (degpol(T)<<1) + 1; GEN x, t = cgetg(N,t_VECSMALL); t[1] = T[1]; l = lg(z); lx = (l-2) / (N-2); x = cgetg(lx+3,t_POL); x[1]=z[1]; for (i=2; i<lx+2; i++) { for (j=2; j<N; j++) t[j] = z[j]; z += (N-2); x[i] = (long)Flx_rem(Flx_renormalize(t,N... |
else if ( strstr( line->Contents, "@subsubsection" ) ) line->keyword = KEYWORD_SUBSUBSECTION; else if ( strstr( line->Contents, "@raise" ) ) line->keyword = KEYWORD_RAISE; else if ( strstr( line->Contents, "@lower" ) ) line->keyword = KEYWORD_LOWER; | void StripBlanks( void ){ Line_Control *line; Keyword_indices_t index; int indentation; int length; for ( line = (Line_Control *) Lines.first ; !_Chain_Is_last( &line->Node ) ; line = (Line_Control *) line->Node.next ) { /* * Strip white space from ... | |
if (*analyseur == '"') { skipstring(); return 0; } if (*analyseur == '!') { analyseur++; skiptruc(); return 0; } if (*analyseur == '\'') | switch(*analyseur) | skiptruc(void){ long n=0; char *old; if (*analyseur == '"') { skipstring(); return 0; } if (*analyseur == '!') { analyseur++; skiptruc(); return 0; } if (*analyseur == '\'') { analyseur++; check_var_name(); skipentry(); return 0; } if (isalpha((int)*analyseur)) { skipidentifier(); return 0; } if (isdi... |
analyseur++; check_var_name(); skipentry(); return 0; | case '"': skipstring(); return 0; case '!': analyseur++; skiptruc(); return 0; case '&': case '\'': analyseur++; check_var_name(); skipentry(); return 0; | skiptruc(void){ long n=0; char *old; if (*analyseur == '"') { skipstring(); return 0; } if (*analyseur == '!') { analyseur++; skiptruc(); return 0; } if (*analyseur == '\'') { analyseur++; check_var_name(); skipentry(); return 0; } if (isalpha((int)*analyseur)) { skipidentifier(); return 0; } if (isdi... |
rtems_unsigned32 SCV64_Get_Interrupt_Enable() | uint32_t SCV64_Get_Interrupt_Enable() | rtems_unsigned32 SCV64_Get_Interrupt_Enable(){ /* * Return the set of interrupts enabled. */ return SCV64->LIE;} |
rtems_unsigned32 SCV64_Get_Interrupt() | uint32_t SCV64_Get_Interrupt() | rtems_unsigned32 SCV64_Get_Interrupt(){ rtems_unsigned8 data; /* * Put the LIS data into the lower byte of the result */ data = SCV64->LIS; return data;} |
rtems_unsigned8 data; | uint8_t data; | rtems_unsigned32 SCV64_Get_Interrupt(){ rtems_unsigned8 data; /* * Put the LIS data into the lower byte of the result */ data = SCV64->LIS; return data;} |
rtems_unsigned8 data; | uint8_t data; | void SCV64_Generate_DUART_Interrupts() { rtems_unsigned8 data; /* * Set Local Interrupt 5 enable */ data = SCV64->LIE; data |= LOCAL_INTERRUPT_ENABLE_5; SCV64->LIE = data; /* * Set Autovector. */ data = SCV64->IC54; data |= AUTOVECTOR_5; SCV64->IC54 = data;} |
if (APR_STATUS_IS_EOF(status)) { return APR_SUCCESS; } | static apr_status_t serf_deflate_read(serf_bucket_t *bucket, apr_size_t requested, const char **data, apr_size_t *len){ deflate_context_t *ctx = bucket->data; unsigned long compCRC, compLen; apr_status_t status; const char *private_da... | |
if (ctx->state == READ_DONE) { *len = 0; return APR_EOF; } | static apr_status_t serf_headers_peek(serf_bucket_t *bucket, const char **data, apr_size_t *len){ headers_context_t *ctx = bucket->data; if (ctx->state == READ_DONE) { *len = 0; return APR_EOF; } /* note that select_valu... | |
if (ctx->cur_read->next == NULL && ctx->state == READ_CRLF) | if (ctx->state == READ_DONE || ctx->state == READ_TERM) | static apr_status_t serf_headers_peek(serf_bucket_t *bucket, const char **data, apr_size_t *len){ headers_context_t *ctx = bucket->data; if (ctx->state == READ_DONE) { *len = 0; return APR_EOF; } /* note that select_valu... |
if (ctx->state == READ_DONE) { *len = 0; | select_value(ctx, data, &avail); if (ctx->state == READ_DONE) | static apr_status_t serf_headers_read(serf_bucket_t *bucket, apr_size_t requested, const char **data, apr_size_t *len){ headers_context_t *ctx = bucket->data; apr_size_t avail; if (ctx->state == READ_DONE) { *len = 0; retur... |
} select_value(ctx, data, &avail); | static apr_status_t serf_headers_read(serf_bucket_t *bucket, apr_size_t requested, const char **data, apr_size_t *len){ headers_context_t *ctx = bucket->data; apr_size_t avail; if (ctx->state == READ_DONE) { *len = 0; retur... | |
rtems_unsigned32 value | uint32_t value | rtems_symbol_value_lookup_exact( rtems_symbol_table_t *table, rtems_unsigned32 value ){ rtems_unsigned32 s; rtems_symbol_t *sp; if (table == 0) { table = rtems_monitor_symbols; if (table == 0) return NULL; } if (table->sorted) { sp = rtems_symbol_valu... |
rtems_unsigned32 s; | uint32_t s; | rtems_symbol_value_lookup_exact( rtems_symbol_table_t *table, rtems_unsigned32 value ){ rtems_unsigned32 s; rtems_symbol_t *sp; if (table == 0) { table = rtems_monitor_symbols; if (table == 0) return NULL; } if (table->sorted) { sp = rtems_symbol_valu... |
float dx,dy,dyvy; | float dx,dy; | static void lineargradient(SDL_svg_context *c, void *_span, int y){float cx,cy;float vx,vy;float f;float dx,dy,dyvy;int dp;int policy;int x, w, coverage; x=((FT_Span *)_span)->x; w=((FT_Span *)_span)->len; coverage=((FT_Span *)_span)->coverage; policy = c->gradient_policy; cx=c->gradient_p1.x; cy=c->gradient_p1.y; vx=c... |
f=vx*vx+vy*vy; | f=(vx*vx+vy*vy); | static void lineargradient(SDL_svg_context *c, void *_span, int y){float cx,cy;float vx,vy;float f;float dx,dy,dyvy;int dp;int policy;int x, w, coverage; x=((FT_Span *)_span)->x; w=((FT_Span *)_span)->len; coverage=((FT_Span *)_span)->coverage; policy = c->gradient_policy; cx=c->gradient_p1.x; cy=c->gradient_p1.y; vx=c... |
dy=y-cy; dyvy = dy*vy; | xp = x + c->e; yp = y + c->f; dx = c->a * xp + c->b * yp - cx; dy = c->c * xp + c->d * yp - cy; | static void lineargradient(SDL_svg_context *c, void *_span, int y){float cx,cy;float vx,vy;float f;float dx,dy,dyvy;int dp;int policy;int x, w, coverage; x=((FT_Span *)_span)->x; w=((FT_Span *)_span)->len; coverage=((FT_Span *)_span)->coverage; policy = c->gradient_policy; cx=c->gradient_p1.x; cy=c->gradient_p1.y; vx=c... |
dx = x - cx; dp=(NUM_GRADIENT_COLORS-1) *(dx*vx + dyvy)/f; | dp=(NUM_GRADIENT_COLORS-1) *(dx*vx + dy*vy)/f; | static void lineargradient(SDL_svg_context *c, void *_span, int y){float cx,cy;float vx,vy;float f;float dx,dy,dyvy;int dp;int policy;int x, w, coverage; x=((FT_Span *)_span)->x; w=((FT_Span *)_span)->len; coverage=((FT_Span *)_span)->coverage; policy = c->gradient_policy; cx=c->gradient_p1.x; cy=c->gradient_p1.y; vx=c... |
dx+=c->a; dy+=c->c; | static void lineargradient(SDL_svg_context *c, void *_span, int y){float cx,cy;float vx,vy;float f;float dx,dy,dyvy;int dp;int policy;int x, w, coverage; x=((FT_Span *)_span)->x; w=((FT_Span *)_span)->len; coverage=((FT_Span *)_span)->coverage; policy = c->gradient_policy; cx=c->gradient_p1.x; cy=c->gradient_p1.y; vx=c... | |
unsigned16 value) | uint16_t value) | ide_controller_write_register(rtems_device_minor_number minor, int reg, unsigned16 value){ IDE_Controller_Table[minor].fns->ctrl_reg_write(minor, reg, value);} |
GEN y; if (!vz) return teich(x); y = (typ(x) == t_PADIC)? gtrunc(x): x; if (divise(y, p)) return gzero; return (GEN)vz[itos(modii(y, p))]; | return (GEN)vz[itos(modii(lift(x), p))]; | quickteich(GEN vz, GEN p, GEN x){ GEN y; if (!vz) return teich(x); y = (typ(x) == t_PADIC)? gtrunc(x): x; if (divise(y, p)) return gzero; return (GEN)vz[itos(modii(y, p))];} |
long j1,k1, tetpil = avma; | long j1,k1; | rowred(GEN a, GEN rmod){ long j,k,pro, c = lg(a), r = lg(a[1]); long av=avma, lim=stack_lim(av,1); GEN q; for (j=1; j<r; j++) { for (k=j+1; k<c; k++) while (signe(gcoeff(a,j,k))) { q=rquot(gcoeff(a,j,j),gcoeff(a,j,k)); pro=(long)mtran((GEN)a[j],(GEN)a[k],q,rmod, j); a[j]=a[k]; a[k]=pro; } if (... |
p1 = gerepile(av,tetpil,gcopy(a)); | p1 = gerepilecopy(av,a); | rowred(GEN a, GEN rmod){ long j,k,pro, c = lg(a), r = lg(a[1]); long av=avma, lim=stack_lim(av,1); GEN q; for (j=1; j<r; j++) { for (k=j+1; k<c; k++) while (signe(gcoeff(a,j,k))) { q=rquot(gcoeff(a,j,j),gcoeff(a,j,k)); pro=(long)mtran((GEN)a[j],(GEN)a[k],q,rmod, j); a[j]=a[k]; a[k]=pro; } if (... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.