Skip to content

Commit 65ccdb7

Browse files
committed
Rename variable to avoid conflict with Windows keyword
Renamed variable 'small' to 'small_val' to avoid conflict with Windows keyword 'small' Change-Id: I9c00c735d20bdf3f0d4f016242831c180214a5da
1 parent edbc0c7 commit 65ccdb7

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

src/base/flamec/util/lapack/mch/fla_slamch.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ real fla_slamch(char *cmach, ftnlen cmach_len)
7474
static TLS_CLASS_SPEC logical lrnd;
7575
static TLS_CLASS_SPEC real rmin, rmax, t, rmach;
7676
extern logical fla_lsame(char *, char *, ftnlen, ftnlen);
77-
static TLS_CLASS_SPEC real small, sfmin;
77+
static TLS_CLASS_SPEC real small_val, sfmin;
7878
extern /* Subroutine */ integer fla_slamc2(integer *, integer *, logical *, real
7979
*, integer *, real *, integer *, real *);
8080
static TLS_CLASS_SPEC integer it;
@@ -155,13 +155,13 @@ real fla_slamch(char *cmach, ftnlen cmach_len)
155155
emin = (real) imin;
156156
emax = (real) imax;
157157
sfmin = rmin;
158-
small = (float)1. / rmax;
159-
if (small >= sfmin) {
158+
small_val = (float)1. / rmax;
159+
if (small_val >= sfmin) {
160160

161161
/* Use SMALL plus a bit, to avoid the possibility of rounding */
162162
/* causing overflow when computing 1/sfmin. */
163163

164-
sfmin = small * (eps + (float)1.);
164+
sfmin = small_val * (eps + (float)1.);
165165
}
166166
}
167167

@@ -437,7 +437,7 @@ explicitly.\002,/)";
437437
static TLS_CLASS_SPEC integer i__, lbeta;
438438
static TLS_CLASS_SPEC real rbase;
439439
static TLS_CLASS_SPEC integer lemin, lemax, gnmin;
440-
static TLS_CLASS_SPEC real small;
440+
static TLS_CLASS_SPEC real small_val;
441441
static TLS_CLASS_SPEC integer gpmin;
442442
static TLS_CLASS_SPEC real third, lrmin, lrmax, sixth;
443443
static TLS_CLASS_SPEC logical lieee1;
@@ -600,13 +600,13 @@ explicitly.\002,/)";
600600
/* is detected when we cannot recover the previous A. */
601601

602602
rbase = one / lbeta;
603-
small = one;
603+
small_val = one;
604604
for (i__ = 1; i__ <= 3; ++i__) {
605-
r__1 = small * rbase;
606-
small = fla_slamc3(&r__1, &zero);
605+
r__1 = small_val * rbase;
606+
small_val = fla_slamc3(&r__1, &zero);
607607
/* L20: */
608608
}
609-
a = fla_slamc3(&one, &small);
609+
a = fla_slamc3(&one, &small_val);
610610
fla_slamc4(&ngpmin, &one, &lbeta);
611611
r__1 = -one;
612612
fla_slamc4(&ngnmin, &r__1, &lbeta);

src/map/lapack2flamec/f2c/install/static/slamch.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ real slamch_(char *cmach)
1717

1818
/* Local variables */
1919
static TLS_CLASS_SPEC real eps, sfmin, base, prec, t, rnd, emin, rmin, emax, rmax;
20-
real rmach, small;
20+
real rmach, small_val;
2121

2222
extern logical lsame_(char *, char *);
2323

@@ -81,9 +81,9 @@ real slamch_(char *cmach)
8181
base = FLT_RADIX;
8282
prec = eps * base;
8383
sfmin = FLT_MIN;
84-
small = one / FLT_MAX;
85-
if ( small >= sfmin)
86-
sfmin = small * (one + eps);
84+
small_val = one / FLT_MAX;
85+
if ( small_val >= sfmin)
86+
sfmin = small_val * (one + eps);
8787

8888
// For t, we need the number of base-2 digits, not base-10 digits.
8989
// Here, we hardcode the value obtained from netlib LAPACK.

0 commit comments

Comments
 (0)