Changeset 3ad53dd in git
- Timestamp:
- Apr 18, 2008, 3:32:53 PM (15 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- db2e1cc3f34575689b573a4b1ba903a8a22a52d9
- Parents:
- 7282887cb4b64d9b0bd7422605cafe9778d1a02e
- Location:
- kernel
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/Makefile.in
r728288 r3ad53dd 114 114 pDebug.cc pInline2.cc pInline1.cc pInline0.cc \ 115 115 pShallowCopyDelete.cc fast_mult.cc digitech.cc\ 116 tgb.cc tgbgauss.cc ringgb.cc ratgring.cc shiftgb.cc116 tgb.cc tgbgauss.cc ringgb.cc f5gb.cc ratgring.cc shiftgb.cc 117 117 118 118 # normal C source files -
kernel/f5gb.h
r728288 r3ad53dd 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: f5gb.h,v 1. 1 2008-04-17 12:32:13 wienand Exp $ */4 /* $Id: f5gb.h,v 1.2 2008-04-18 13:32:53 wienand Exp $ */ 5 5 /* 6 6 * ABSTRACT: ringgb interface … … 15 15 16 16 #endif 17 #endif -
kernel/rintegers.cc
r728288 r3ad53dd 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: rintegers.cc,v 1.1 1 2008-03-19 17:44:11 SingularExp $ */4 /* $Id: rintegers.cc,v 1.12 2008-04-18 13:32:53 wienand Exp $ */ 5 5 /* 6 6 * ABSTRACT: numbers modulo n … … 288 288 * extracts a long integer from s, returns the rest (COPY FROM longrat0.cc) 289 289 */ 290 char * nlEatLongC(char *s, MP_INT *i) 291 { 292 char * start=s; 293 if (!(*s >= '0' && *s <= '9')) 294 { 295 mpz_init_set_si(i, 1); 296 return s; 297 } 298 mpz_init(i); 290 static const char * nlEatLongC(char *s, MP_INT *i) 291 { 292 const char * start=s; 293 299 294 while (*s >= '0' && *s <= '9') s++; 300 295 if (*s=='\0') … … 312 307 } 313 308 314 315 char * nrzRead (char *s, number *a) 309 const char * nrzRead (const char *s, number *a) 316 310 { 317 311 int_number z = (int_number) omAllocBin(gmp_nrz_bin); // evtl. spaeter mit bin 318 312 { 319 313 mpz_init(z); 320 s = nlEatLongC( s, z);314 s = nlEatLongC((char *) s, z); 321 315 } 322 316 *a = (number) z; -
kernel/rintegers.h
r728288 r3ad53dd 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: rintegers.h,v 1. 4 2008-03-19 17:44:11 SingularExp $ */6 /* $Id: rintegers.h,v 1.5 2008-04-18 13:32:53 wienand Exp $ */ 7 7 /* 8 8 * ABSTRACT: numbers modulo n … … 43 43 nMapFunc nrzSetMap (ring src, ring dst); 44 44 void nrzWrite (number &a); 45 c har * nrzRead (char *s, number *a);45 const char * nrzRead (const char *s, number *a); 46 46 char * nrzName (number n); 47 47 #ifdef LDEBUG
Note: See TracChangeset
for help on using the changeset viewer.