Changeset 039016 in git
- Timestamp:
- Aug 26, 2010, 5:54:06 PM (13 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '0604212ebb110535022efecad887940825b97c3f')
- Children:
- 2e6a0618fb4aec3b476ffa839f58c0bbe38e649c
- Parents:
- 17e58bd0adfff2102c82ae041746b1ff6830733c
- git-author:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2010-08-26 17:54:06+02:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 11:55:27+01:00
- Location:
- coeffs
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
coeffs/gnumpc.cc
r17e58bd r039016 221 221 return; 222 222 } 223 if ( exp&1==1)223 if ( (exp & 1) == 1 ) 224 224 { 225 225 ngcPower(x,exp-1,u, r); … … 374 374 375 375 376 376 /// test, whether r is an instance of nInitCoeffs(n, parameter) 377 377 static BOOLEAN ngcCoeffsEqual(const coeffs r, n_coeffType n, void*) 378 378 { … … 380 380 381 381 return (n == ID); 382 } ;382 } 383 383 384 384 void ngcInitChar(coeffs n, void*) … … 415 415 n->cfDBTest = ndDBTest; // not yet implemented: ngcDBTest 416 416 #endif 417 418 n->nCoeffIsEqual = ngcCoeffsEqual; 417 419 418 420 -
coeffs/gnumpc.h
r17e58bd r039016 15 15 /// Initialize r 16 16 void ngcInitChar(coeffs r, void*); 17 18 /// test, whether r is an instance of nInitCoeffs(n, parameter) */19 static BOOLEAN ngcCoeffsEqual(const coeffs r, n_coeffType n, void* parameter);20 21 17 22 18 -
coeffs/gnumpfl.cc
r17e58bd r039016 381 381 } 382 382 383 /// test, whether r is an instance of nInitCoeffs(n, parameter) 383 384 static BOOLEAN ngfCoeffsEqual(const coeffs r, n_coeffType n, void*) 384 385 { … … 386 387 387 388 return (n == ID); 388 } ;389 } 389 390 390 391 void ngfInitChar(coeffs n, void *) … … 417 418 n->cfDBTest = ndDBTest; // not yet implemented: ngfDBTest 418 419 #endif 420 421 n->nCoeffIsEqual = ngfCoeffsEqual; 419 422 } 420 423 -
coeffs/gnumpfl.h
r17e58bd r039016 15 15 /// Initialize r 16 16 void ngfInitChar(coeffs r, void *); 17 18 /// test, whether r is an instance of nInitCoeffs(n, parameter) */19 static BOOLEAN ngfCoeffsEqual(const coeffs r, n_coeffType n, void*);20 21 17 22 18 const char * ngfRead (const char *s, number *a, const coeffs r); -
coeffs/longrat.cc
r17e58bd r039016 2517 2517 r->cfDBTest=nlDBTest; 2518 2518 #endif 2519 2520 r->nCoeffIsEqual = nlCoeffsEqual; 2519 2521 2520 2522 // the variables: general stuff (required) -
coeffs/longrat.h
r17e58bd r039016 59 59 60 60 void nlInitChar(coeffs r, void*); 61 static BOOLEAN nlCoeffsEqual(const coeffs r, n_coeffType n, void * parameter);62 61 63 62 number nlInit2 (int i, int j, const coeffs r); -
coeffs/shortfl.cc
r17e58bd r039016 87 87 } 88 88 89 int nrSize(number n, const coeffs R)89 int nrSize(number n, const coeffs) 90 90 { 91 91 float f = nf(n).F(); … … 263 263 264 264 namespace { 265 static const char* nrEatr(const char *s, float *r)266 {267 int i;268 269 if (*s >= '0' && *s <= '9')270 {271 *r = 0.0;272 do273 {274 *r *= 10.0;275 i = *s++ - '0';276 *r += (float)i;277 }278 while (*s >= '0' && *s <= '9');279 }280 else *r = 1.0;281 return s;282 }283 } ;265 static const char* nrEatr(const char *s, float *r) 266 { 267 int i; 268 269 if (*s >= '0' && *s <= '9') 270 { 271 *r = 0.0; 272 do 273 { 274 *r *= 10.0; 275 i = *s++ - '0'; 276 *r += (float)i; 277 } 278 while (*s >= '0' && *s <= '9'); 279 } 280 else *r = 1.0; 281 return s; 282 } 283 } 284 284 285 285 const char * nrRead (const char *s, number *a, const coeffs r) … … 353 353 * test valid numbers: not implemented yet 354 354 */ 355 #pragma GCC diagnostic ignored "-Wunused-parameter" 355 356 BOOLEAN nrDBTest(number a, const char *f, const int l, const coeffs r) 356 357 { … … 537 538 538 539 539 /// test, whether r is an instance of nInitCoeffs(n, parameter) */540 static BOOLEAN nrCoeffsEqual(const coeffs r, n_coeffType n, void* parameter)540 /// test, whether r is an instance of nInitCoeffs(n, parameter) 541 static BOOLEAN nrCoeffsEqual(const coeffs r, n_coeffType n, void*) 541 542 { 542 543 assume( getCoeffType(r) == ID ); 543 544 544 545 return (n == ID); 545 }; 546 546 } 547 547 548 548 … … 577 577 #endif 578 578 579 580 581 /// TODO: Any variables? 582 583 } 579 n->nCoeffIsEqual = nrCoeffsEqual; 580 581 // TODO: Any variables? 582 } -
coeffs/shortfl.h
r17e58bd r039016 16 16 /// Initialize r 17 17 void nrInitChar(coeffs r, void*); 18 19 /// test, whether r is an instance of nInitCoeffs(n, parameter) */20 static BOOLEAN nrCoeffsEqual(const coeffs r, n_coeffType n, void* parameter);21 22 18 23 19 // Private interface should be hidden!!!
Note: See TracChangeset
for help on using the changeset viewer.