Changeset cf21dd4 in git for Singular/ipshell.cc


Ignore:
Timestamp:
Jul 21, 2010, 10:35:12 AM (13 years ago)
Author:
Frank Seelisch <seelisch@…>
Branches:
(u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
Children:
76e50131b2b048f970f871fc09f3ad7fa94fd50f
Parents:
f9f879c1f6d30f79ea772c2280be1b75d3256e46
Message:
extends Z/2^m to m =32 resp. 64 (depending on platform)

git-svn-id: file:///usr/local/Singular/svn/trunk@13035 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/ipshell.cc

    rf9f879 rcf21dd4  
    19741974  {
    19751975    R->ch = R->ringflagb;
    1976     if ((mpz_cmp_ui(R->ringflaga, 2) == 0) && (R->ringflagb < 8*sizeof(NATNUMBER)))
    1977     {
    1978       /* this branch should be active for ringflagb = 2..31 resp. 2..63;
    1979          note that 2^31 resp 2^63 is the largest power of 2 that fits into
    1980          an unsigned long */
     1976    if ((mpz_cmp_ui(R->ringflaga, 2) == 0) && (R->ringflagb <= 8*sizeof(NATNUMBER)))
     1977    {                                         
     1978      /* this branch should be active for ringflagb = 2..32 resp. 2..64,
     1979           depending on the size of a long on the respective platform */
    19811980      R->ringtype = 1;       // Use Z/2^ch
    19821981    }
     
    47614760    {
    47624761      ch = ringflagb;
    4763       if ((mpz_cmp_ui(ringflaga, 2) == 0) && (ringflagb < 8*sizeof(NATNUMBER)))
    4764       {
    4765         /* this branch should be active for ringflagb = 2..31 resp. 2..63;
    4766            note that 2^31 resp 2^63 is the largest power of 2 that fits into
    4767            an unsigned long */
     4762      if ((mpz_cmp_ui(ringflaga, 2) == 0) && (ringflagb <= 8*sizeof(NATNUMBER)))
     4763      {                                   
     4764        /* this branch should be active for ringflagb = 2..32 resp. 2..64,
     4765           depending on the size of a long on the respective platform */
    47684766        ringtype = 1;       // Use Z/2^ch
    47694767      }
Note: See TracChangeset for help on using the changeset viewer.