Changeset 33ca13 in git for libpolys/coeffs/flintcf_Zn.cc
- Timestamp:
- Jul 4, 2018, 3:16:04 PM (5 years ago)
- Branches:
- (u'spielwiese', 'ec94ef7a30b928574c0c3daf41f6804dff5f6b69')
- Children:
- 28a3d22f453ebd3d8e245b645c9a0cd003919d08
- Parents:
- e256b457c3a40d4718b8c57b06c38ee20fd89f70
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/coeffs/flintcf_Zn.cc
re256b4 r33ca13 431 431 return buf; 432 432 } 433 static void WriteFd(number a, FILE *f, const coeffs)433 static void WriteFd(number a, const ssiInfo *d, const coeffs) 434 434 { 435 435 // format: len a_len .. a_0 436 436 nmod_poly_ptr aa=(nmod_poly_ptr)a; 437 437 int l=nmod_poly_length(aa); 438 fprintf( f,"%d ",l);438 fprintf(d->f_write,"%d ",l); 439 439 for(int i=l; i>=0; i--) 440 440 { 441 441 ulong ul=nmod_poly_get_coeff_ui(aa,i); 442 fprintf(f,"%lu ", ul); 443 } 444 } 442 fprintf(d->f_write,"%lu ", ul); 443 } 444 } 445 445 446 static number ReadFd(s_buff f, const coeffs r) 446 447 {
Note: See TracChangeset
for help on using the changeset viewer.