Changeset e554162 in git
- Timestamp:
- Nov 22, 2011, 7:19:05 PM (12 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'cdfcdb8287f66bc6070028082cbbc6eff10e609b')
- Children:
- 8433482547cae25e8b3bbd39d7a1e85adcd3e5ae
- Parents:
- 737b7c8c465e4892fcc4bee81dfba341b05829ac
- git-author:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-11-22 19:19:05+01:00
- git-committer:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-11-23 01:24:53+01:00
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/grammar.cc
r737b7c8 re554162 403 403 The default value of `YYMAXDEPTH', if you do not define it, is 10000. 404 404 */ 405 #define YYMAXDEPTH INT_MAX405 #define YYMAXDEPTH MAX_INT_VAL 406 406 407 407 extern int yylineno; -
Singular/grammar.y
r737b7c8 re554162 99 99 The default value of `YYMAXDEPTH', if you do not define it, is 10000. 100 100 */ 101 #define YYMAXDEPTH INT_MAX101 #define YYMAXDEPTH MAX_INT_VAL 102 102 103 103 extern int yylineno; -
Singular/mpsr_GetPoly.cc
r737b7c8 re554162 271 271 mp_failr(IMP_GetUint32(link, &ui)); 272 272 // check whether u_int can be casted safely to int 273 if (ui < INT_MAX)273 if (ui < MAX_INT_VAL) 274 274 *x = nlInit(ui, currRing); 275 275 else -
Singular/pcv.cc
r737b7c8 re554162 213 213 d+=pGetExp(m,i+1); 214 214 dn=pcvIndex[i][d]; 215 if(dn> INT_MAX-n)215 if(dn>MAX_INT_VAL-n) 216 216 { 217 217 i=currRing->N; -
dyn_modules/pcv.mod
r737b7c8 re554162 329 329 d+=pGetExp(m,i+1); 330 330 dn=pcvIndex[i][d]; 331 if(dn> INT_MAX-n)331 if(dn>MAX_INT_VAL-n) 332 332 { 333 333 i=pVariables; -
kernel/gfan.cc
r737b7c8 re554162 1387 1387 for (int ii=0;ii<(this->numVars);ii++) 1388 1388 { 1389 if( (*ivIntPointOfCone)[ii]> INT_MAX)1390 WarnS("Interior point exceeds INT_MAX!\n");1389 if( (*ivIntPointOfCone)[ii]>MAX_INT_VAL ) 1390 WarnS("Interior point exceeds MAX_INT_VAL!\n"); 1391 1391 //Compute intgcd 1392 1392 ggT=int64gcd(ggT,(*ivIntPointOfCone)[ii]); … … 1399 1399 { 1400 1400 (*ivIntPointOfCone)[ii] /= ggT; 1401 if( (*ivIntPointOfCone)[ii]> INT_MAX ) WarnS("Interior point still exceeds INT_MAXafter GCD!\n");1401 if( (*ivIntPointOfCone)[ii]>MAX_INT_VAL ) WarnS("Interior point still exceeds MAX_INT_VAL after GCD!\n"); 1402 1402 } 1403 1403 } … … 2706 2706 { 2707 2707 A[jj]=(*ivw)[jj]; 2708 if((*ivw)[jj]>= INT_MAX) WarnS("A[jj] exceeds INT_MAXin gcone::rCopyAndAddWeight!\n");2708 if((*ivw)[jj]>=MAX_INT_VAL) WarnS("A[jj] exceeds MAX_INT_VAL in gcone::rCopyAndAddWeight!\n"); 2709 2709 } 2710 2710 res->wvhdl[0]=(int *)A; … … 2748 2748 A1[jj]=(*ivw)[jj]; 2749 2749 A2[jj]=-(*fNormal)[jj]; 2750 if((*ivw)[jj]>= INT_MAX || (*fNormal)[jj]>=INT_MAX) WarnS("A[jj] exceeds INT_MAXin gcone::rCopyAndAddWeight2!\n");2750 if((*ivw)[jj]>=MAX_INT_VAL || (*fNormal)[jj]>=MAX_INT_VAL) WarnS("A[jj] exceeds MAX_INT_VAL in gcone::rCopyAndAddWeight2!\n"); 2751 2751 } 2752 2752 res->wvhdl[0]=(int *)A1; … … 3726 3726 { 3727 3727 A[jj]=(*ivw)[jj]; 3728 if((*ivw)[jj]>= INT_MAX) WarnS("A[jj] exceeds INT_MAXin gcone::replaceDouble_ringorder_a_ByASingleOne!\n");3728 if((*ivw)[jj]>=MAX_INT_VAL) WarnS("A[jj] exceeds MAX_INT_VAL in gcone::replaceDouble_ringorder_a_ByASingleOne!\n"); 3729 3729 } 3730 3730 //delete ivw; //Not needed if this->getIntPoint(TRUE) -
kernel/hdegree.cc
r737b7c8 re554162 1060 1060 int i, j, Istc = Nstc; 1061 1061 1062 y = INT_MAX;1062 y = MAX_INT_VAL; 1063 1063 for (i=Nstc-1; i>=0; i--) 1064 1064 { -
kernel/hilb.cc
r737b7c8 re554162 52 52 if (z > Ql[j]) 53 53 { 54 if (z>( INT_MAX)/2)54 if (z>(MAX_INT_VAL)/2) 55 55 { 56 56 Werror("interal arrays too big"); -
kernel/spectrum.cc
r737b7c8 re554162 231 231 static inline int isLeadMonomial( poly m,ideal stdJ, const ring r ) 232 232 { 233 int length = INT_MAX;233 int length = MAX_INT_VAL; 234 234 int result = -1; 235 235 -
libpolys/misc/mylimits.h
r737b7c8 re554162 10 10 #define _MYLIMITS_H 11 11 12 static const int MAX_INT_VAL = 2147483647; 12 /* Maximum/minimum value an `signed int' can hold. */ 13 // #define MAX_INT_VAL 2147483647 14 #ifndef MAX_INT_VAL 15 #define MAX_INT_VAL (2147483647) 16 #endif 17 18 #ifndef MIN_INT_VAL 19 #define MIN_INT_VAL (-MAX_INT_VAL-1) 20 #endif 21 13 22 14 23 #define ULONG_MAX (~0L) -
libpolys/polys/sparsmat.cc
r737b7c8 re554162 45 45 #define SM_MIN_LENGTH_BUCKET MIN_LENGTH_BUCKET - 5 46 46 #else 47 #define SM_MIN_LENGTH_BUCKET INT_MAX47 #define SM_MIN_LENGTH_BUCKET MAX_INT_VAL 48 48 #endif 49 49
Note: See TracChangeset
for help on using the changeset viewer.