- Timestamp:
- Jun 30, 2017, 2:58:42 PM (7 years ago)
- Branches:
- (u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
- Children:
- 541b207e61f595e837e6079db54d90568408ee06
- Parents:
- 1744215efa55b9960a2e39b0ace7f4df0011ecee
- Location:
- libpolys/coeffs
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/coeffs/gnumpc.cc
r174421 ra2de54 383 383 384 384 if ((p==NULL) 385 && ( 6==r->float_len)386 && ( 6==r->float_len2)385 && (SHORT_REAL_LENGTH==r->float_len) 386 && (SHORT_REAL_LENGTH==r->float_len2) 387 387 && (strcmp("i",n_ParameterNames(r)[0]) == 0) 388 388 ) … … 430 430 static void ngcCoeffWrite (const coeffs r, BOOLEAN /*details*/) 431 431 { 432 Print(" float[%s](complex:%d digits, additional %d digits)/(%s^2+1)",n_ParameterNames(r)[0],432 Print("real[%s](complex:%d digits, additional %d digits)/(%s^2+1)",n_ParameterNames(r)[0], 433 433 r->float_len, r->float_len2, n_ParameterNames(r)[0]); /* long C */ 434 434 } -
libpolys/coeffs/gnumpfl.cc
r174421 ra2de54 503 503 static void ngfCoeffWrite (const coeffs r, BOOLEAN /*details*/) 504 504 { 505 Print(" float(real:%d digits, additional %d digits)",505 Print("real:%d digits, additional %d digits", 506 506 r->float_len,r->float_len2); /* long R */ 507 507 } -
libpolys/coeffs/numbers.h
r174421 ra2de54 7 7 * ABSTRACT: compatility interface to coeffs 8 8 */ 9 #include "coeffs/coeffs.h" 9 #include "libpolys/coeffs/coeffs.h" 10 #include "omalloc/omalloc.h" /* for SIZEOF_DOUBLE, SIZEOF_LONG*/ 10 11 11 12 // the access methods … … 52 53 // internal to coeffs, but public for all realizations 53 54 54 #define SHORT_REAL_LENGTH 6 // use short reals for real <= 6 digits 55 #if SIZEOF_DOUBE == SIZEOF_LONG 56 #define SHORT_REAL_LENGTH 16 // use double for real <= 15 digits 57 #else 58 #define SHORT_REAL_LENGTH 6 // use float for real <= 6 digits 59 #endif 55 60 56 61 /* the dummy routines: */ -
libpolys/coeffs/shortfl.cc
r174421 ra2de54 83 83 { 84 84 assume( getCoeffType(r) == n_R ); 85 PrintS(" float"); /* R */85 PrintS("real"); /* R */ 86 86 } 87 87 … … 282 282 assume( getCoeffType(r) == n_R ); 283 283 284 #if SIZEOF_DOUBLE == SIZEOF_LONG 285 char ch[16]; 286 int n = sprintf(ch,"%12.6e", nf(a).F()); 287 #else 284 288 char ch[11]; 285 289 int n = sprintf(ch,"%9.3e", nf(a).F()); 290 #endif 286 291 if (ch[0] == '-') 287 292 {
Note: See TracChangeset
for help on using the changeset viewer.