Changeset 6c15ec in git
- Timestamp:
- Nov 21, 2006, 12:00:56 PM (17 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '0604212ebb110535022efecad887940825b97c3f')
- Children:
- e2629ce4f7e55e7bff5bf2315aee0a8801a5f683
- Parents:
- f2c2b7e9680cff169a760b50002fbd78676e5fae
- Location:
- kernel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/longrat.cc
rf2c2b7 r6c15ec 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: longrat.cc,v 1.1 3 2006-05-02 16:25:17Singular Exp $ */4 /* $Id: longrat.cc,v 1.14 2006-11-21 11:00:56 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: computation with long rational numbers (Hubert Grassmann) … … 1297 1297 { 1298 1298 int in=mpz_mmod_ui(NULL,&n->n,(unsigned long)p); 1299 #ifdef NV_OPS 1300 if (npPrimeM>NV_MAX_PRIME) 1301 return (int)((long)nvDiv((number)iz,(number)in)); 1302 #endif 1299 1303 return (int)((long)npDiv((number)iz,(number)in)); 1300 1304 } -
kernel/modulop.cc
rf2c2b7 r6c15ec 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: modulop.cc,v 1. 6 2006-08-11 09:47:22Singular Exp $ */4 /* $Id: modulop.cc,v 1.7 2006-11-21 11:00:56 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: numbers modulo p (<=32003) … … 163 163 number npDiv (number a,number b) 164 164 { 165 //#ifdef NV_OPS 166 // if (npPrimeM>NV_MAX_PRIME) 167 // return nvDiv(a,b); 168 //#endif 165 169 if ((long)a==0) 166 170 return (number)0; 167 171 #ifndef HAVE_DIV_MOD 168 elseif ((long)b==0)172 if ((long)b==0) 169 173 { 170 174 WerrorS("div by 0"); … … 267 271 if (n == 1) 268 272 *a = (number)z; 269 else 273 else 270 274 #ifdef NV_OPS 271 275 if (npPrimeM>NV_MAX_PRIME) 272 276 *a = nvDiv((number)z,(number)n); 273 277 else 274 #endif 278 #endif 275 279 *a = npDiv((number)z,(number)n); 276 280 return s;
Note: See TracChangeset
for help on using the changeset viewer.