Changeset 33ca13 in git for libpolys/coeffs/flintcf_Zn.cc


Ignore:
Timestamp:
Jul 4, 2018, 3:16:04 PM (5 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'ec94ef7a30b928574c0c3daf41f6804dff5f6b69')
Children:
28a3d22f453ebd3d8e245b645c9a0cd003919d08
Parents:
e256b457c3a40d4718b8c57b06c38ee20fd89f70
Message:
ssiLink: use ssiInfo to write coeffs
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/coeffs/flintcf_Zn.cc

    re256b4 r33ca13  
    431431  return buf;
    432432}
    433 static void WriteFd(number a, FILE *f, const coeffs)
     433static void WriteFd(number a, const ssiInfo *d, const coeffs)
    434434{
    435435  // format: len a_len .. a_0
    436436  nmod_poly_ptr aa=(nmod_poly_ptr)a;
    437437  int l=nmod_poly_length(aa);
    438   fprintf(f,"%d ",l);
     438  fprintf(d->f_write,"%d ",l);
    439439  for(int i=l; i>=0; i--)
    440440  {
    441441    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
    445446static number ReadFd(s_buff f, const coeffs r)
    446447{
Note: See TracChangeset for help on using the changeset viewer.