Changeset 097353 in git for libpolys


Ignore:
Timestamp:
Sep 20, 2017, 2:57:28 PM (7 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
Children:
282075b183fa7d94a566c6c1e9ff6f009828fb51
Parents:
abefe73030583b4cc263ffc88c99ffb9bed9da72
Message:
fix: warn if ZZ/p is constructed with p>2^29 (factory limit)
Location:
libpolys/coeffs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libpolys/coeffs/modulop.cc

    rabefe7 r097353  
    517517    r->cfInvers= nvInvers;
    518518    //r->cfPower= nvPower;
     519    if (c>FACTORY_MAX_PRIME)
     520    {
     521      Warn("prime too large(>%ld): factory routines are not available",FACTORY_MAX_PRIME);
     522      r->convSingNFactoryN=ndConvSingNFactoryN;
     523    }
    519524  }
    520525#endif
  • libpolys/coeffs/modulop.h

    rabefe7 r097353  
    2020#define NV_OPS
    2121#define NV_MAX_PRIME 32749
     22#define FACTORY_MAX_PRIME 536870909
    2223
    2324struct n_Procs_s; typedef struct  n_Procs_s  *coeffs;
Note: See TracChangeset for help on using the changeset viewer.