Skip to content
Myr

Avoiding conditional directives that break statements

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Romero Malaquias · committed by Nicolas Williams · parent ad8d1a8 · Browse files · 1 file+4 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−5 removed

  • other:+4 added−5 removed

1 file+4 added−5 removed

modified:src/jv_dtoa.c+4 added-5 removed
2325 unmodified lines
2326 double2327jvp_strtod2328 (struct dtoa_context* C, const char *s00, char **se)2329{2330 int bb2, bb5, bbe, bd2, bd5, bbbits, bs2, c, e, e1;2330 int bb2, bb5, bbe, bd2, bd5, bbbits, bs2, c, e, e1, test_scale;2331 int esign, i, j, k, nd, nd0, nf, nz, nz0, nz1, sign;2332 CONST char *s, *s0, *s1;2333 double aadj, aadj1;2334 Long L;
605 unmodified lines
2940 adj.d = -1.;2941 if (!word1(&rv)2942 && !(word0(&rv) & Frac_mask)) {2943 y = word0(&rv) & Exp_mask;2944 test_scale = y;2945#ifdef Avoid_Underflow2945 if (!bc.scale || y > 2*P*Exp_msk1)2946#else2947 if (y)2946 test_scale = (!bc.scale || y > 2*P*Exp_msk1);2947#endif2949 {2948 if (test_scale) {2949 delta = lshift(C, delta,Log2P);2950 if (cmp(C, delta, bs) <= 0)2951 adj.d = -0.5;2952 }
1322 unmodified lines