Changeset faa7df in git
- Timestamp:
- Jan 30, 2008, 3:28:16 PM (15 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- 122981d0e106581ee4b7623ee3c76393fef4568a
- Parents:
- 8e56ad409bb871477d7d51804d679aa766da743b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/ipshell.cc
r8e56ad rfaa7df 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ipshell.cc,v 1.17 3 2008-01-30 08:14:45wienand Exp $ */4 /* $Id: ipshell.cc,v 1.174 2008-01-30 14:28:16 wienand Exp $ */ 5 5 /* 6 6 * ABSTRACT: … … 4439 4439 ringtype = 2; 4440 4440 ringflaga = module; 4441 ringflagb = 1; 4441 4442 WarnS("Z/n not yet fully tested"); 4442 4443 } … … 4464 4465 } 4465 4466 ch = exp; 4466 if ( base == 2)4467 if ((base == 2) && (exp + 2 <= 8*sizeof(NATNUMBER))) 4467 4468 { 4468 4469 ringtype = 1; // Use Z/2^ch … … 4473 4474 else 4474 4475 { 4476 if ((base == 2) && (exp + 2 > 8*sizeof(NATNUMBER))) 4477 { 4478 Print("// exponent+2 is larger then number of bits in 'NATNUMBER' (%d bits)\n", 8*sizeof(NATNUMBER)); 4479 WarnS("==> using generic gmp implementation (restriction from design and NTL)"); 4480 } 4475 4481 ringtype = 3; 4476 4482 ringflaga = base; 4477 4483 ringflagb = exp; 4478 // ch = base**exp 4479 Werror("p^n not yet implemented"); 4480 goto rInitError; 4484 WarnS("Z/p^n not yet fully tested"); 4481 4485 } 4482 4486 }
Note: See TracChangeset
for help on using the changeset viewer.