Changeset 28a3d2 in git
- Timestamp:
- Jul 5, 2018, 3:45:35 PM (5 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- 7c8188b8f91cdb0c85b5db214f0baa451bb5186afec0e698195c1310cb8930215e910b220b8ad5ce
- Parents:
- 33ca139a30b77f4102096eb5d3ec15ce75f4aa77
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/links/ssiLink.cc
r33ca13 r28a3d2 403 403 if (cf->cfReadFd!=NULL) 404 404 { 405 return n_ReadFd(d ->f_read,cf);405 return n_ReadFd(d,cf); 406 406 } 407 407 else if (getCoeffType(cf) == n_transExt) -
libpolys/coeffs/coeffs.h
r33ca13 r28a3d2 276 276 277 277 void (*cfWriteFd)(number a, const ssiInfo *f, const coeffs r); 278 number (*cfReadFd)( s_bufff, const coeffs r);278 number (*cfReadFd)( const ssiInfo *f, const coeffs r); 279 279 280 280 /// Inplace: a *= b … … 988 988 989 989 /// io via ssi: 990 static FORCE_INLINE number n_ReadFd( s_bufff, const coeffs r)990 static FORCE_INLINE number n_ReadFd( const ssiInfo *f, const coeffs r) 991 991 { STATISTIC(n_ReadFd); assume(r != NULL); assume(r->cfReadFd != NULL); return r->cfReadFd(f, r); } 992 992 -
libpolys/coeffs/flintcf_Q.cc
r33ca13 r28a3d2 511 511 mpq_clear(m); 512 512 } 513 static number ReadFd( s_buff f, const coeffs)513 static number ReadFd(const ssiInfo *d, const coeffs) 514 514 { 515 515 // format: len a_len .. a_0 516 516 fmpq_poly_ptr aa=(fmpq_poly_ptr)omAlloc(sizeof(fmpq_poly_t)); 517 517 fmpq_poly_init(aa); 518 int l=s_readint( f);518 int l=s_readint(d->f_read); 519 519 mpz_t nm; 520 520 mpz_init(nm); … … 524 524 { 525 525 526 s_readmpz_base ( f,nm, SSI_BASE);526 s_readmpz_base (d->f_read,nm, SSI_BASE); 527 527 mpq_set_num(m,nm); 528 s_readmpz_base ( f,nm, SSI_BASE);528 s_readmpz_base (d->f_read,nm, SSI_BASE); 529 529 mpq_set_den(m,nm); 530 530 fmpq_poly_set_coeff_mpq(aa,i,m); -
libpolys/coeffs/flintcf_Zn.cc
r33ca13 r28a3d2 444 444 } 445 445 446 static number ReadFd( s_buff f, const coeffs r)446 static number ReadFd(const ssiInfo *d, const coeffs r) 447 447 { 448 448 // format: len a_len .. a_0 449 449 nmod_poly_ptr aa=(nmod_poly_ptr)omAlloc(sizeof(nmod_poly_t)); 450 450 nmod_poly_init(aa,r->ch); 451 int l=s_readint( f);451 int l=s_readint(d->f_read); 452 452 unsigned long ul; 453 453 for (int i=l;i>=0;i--) 454 454 { 455 unsigned long ul=s_readlong( f);455 unsigned long ul=s_readlong(d->f_read); 456 456 nmod_poly_set_coeff_ui(aa,i,ul); 457 457 } -
libpolys/coeffs/longrat.cc
r33ca13 r28a3d2 3222 3222 } 3223 3223 3224 static number nlReadFd( s_buff f, const coeffs)3224 static number nlReadFd(const ssiInfo *d, const coeffs) 3225 3225 { 3226 3226 int sub_type=-1; 3227 sub_type=s_readint( f);3227 sub_type=s_readint(d->f_read); 3228 3228 switch(sub_type) 3229 3229 { … … 3233 3233 number n=nlRInit(0); 3234 3234 mpz_init(n->n); 3235 s_readmpz( f,n->z);3236 s_readmpz( f,n->n);3235 s_readmpz(d->f_read,n->z); 3236 s_readmpz(d->f_read,n->n); 3237 3237 n->s=sub_type; 3238 3238 return n; … … 3242 3242 {// read mpz_t 3243 3243 number n=nlRInit(0); 3244 s_readmpz( f,n->z);3244 s_readmpz(d->f_read,n->z); 3245 3245 n->s=3; /*sub_type*/ 3246 3246 #if SIZEOF_LONG == 8 … … 3251 3251 case 4: 3252 3252 { 3253 LONG dd=s_readlong( f);3253 LONG dd=s_readlong(d->f_read); 3254 3254 //#if SIZEOF_LONG == 8 3255 3255 return INT_TO_SR(dd); … … 3263 3263 number n=nlRInit(0); 3264 3264 mpz_init(n->n); 3265 s_readmpz_base ( f,n->z, SSI_BASE);3266 s_readmpz_base ( f,n->n, SSI_BASE);3265 s_readmpz_base (d->f_read,n->z, SSI_BASE); 3266 s_readmpz_base (d->f_read,n->n, SSI_BASE); 3267 3267 n->s=sub_type-5; 3268 3268 return n; … … 3271 3271 {// read raw mpz_t 3272 3272 number n=nlRInit(0); 3273 s_readmpz_base ( f,n->z, SSI_BASE);3273 s_readmpz_base (d->f_read,n->z, SSI_BASE); 3274 3274 n->s=sub_type=3; /*subtype-5*/ 3275 3275 #if SIZEOF_LONG == 8 -
libpolys/coeffs/modulop.cc
r33ca13 r28a3d2 377 377 } 378 378 379 static number npReadFd( s_buff f, const coeffs)379 static number npReadFd(const ssiInfo *d, const coeffs) 380 380 { 381 381 // read int 382 382 int dd; 383 dd=s_readint( f);383 dd=s_readint(d->f_read); 384 384 return (number)(long)dd; 385 385 }
Note: See TracChangeset
for help on using the changeset viewer.