improve readability of stdlib: fix indentation and remove trailing spaces
Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com> Change-Id: I7dd90a0816b5376ffc1de4499d56935e0bd574a1
This commit is contained in:
parent
1698d9ebfc
commit
e734769276
@ -53,7 +53,7 @@ const char _C_ctype_[1 + CTYPE_NUM_CHARS] = {
|
||||
_P, _L|_X, _L|_X, _L|_X, _L|_X, _L|_X, _L|_X, _L,
|
||||
_L, _L, _L, _L, _L, _L, _L, _L,
|
||||
_L, _L, _L, _L, _L, _L, _L, _L,
|
||||
/* determine printability based on the IS0 8859 8-bit standard */
|
||||
/* determine printability based on the IS0 8859 8-bit standard */
|
||||
_L, _L, _L, _P, _P, _P, _P, _C,
|
||||
|
||||
_C, _C, _C, _C, _C, _C, _C, _C, /* 80 */
|
||||
|
@ -157,5 +157,5 @@ loop: SWAPINIT(a, es);
|
||||
n = r / es;
|
||||
goto loop;
|
||||
}
|
||||
/* qsort(pn - r, r / es, es, cmp);*/
|
||||
/* qsort(pn - r, r / es, es, cmp); */
|
||||
}
|
||||
|
@ -238,8 +238,7 @@ unsigned char finalcount[8];
|
||||
while ((context->count[0] & 504) != 448) {
|
||||
SHA1Update(context, (unsigned char *)"\0", 1);
|
||||
}
|
||||
SHA1Update(context, finalcount, 8); /* Should cause a SHA1Transform()
|
||||
*/
|
||||
SHA1Update(context, finalcount, 8); /* Should cause a SHA1Transform() */
|
||||
for (i = 0; i < 20; i++) {
|
||||
digest[i] = (unsigned char)
|
||||
((context->state[i>>2] >> ((3-(i & 3)) * 8) ) & 255);
|
||||
|
@ -364,7 +364,7 @@ Bigint {
|
||||
struct Bigint *next;
|
||||
int k, maxwds, sign, wds;
|
||||
ULong x[1];
|
||||
};
|
||||
};
|
||||
|
||||
typedef struct Bigint Bigint;
|
||||
|
||||
@ -405,7 +405,7 @@ Balloc
|
||||
mutex_unlock(&freelist_mutex);
|
||||
|
||||
return rv;
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
Bfree
|
||||
@ -423,7 +423,7 @@ Bfree
|
||||
|
||||
mutex_unlock(&freelist_mutex);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#define Bcopy(x,y) memcpy(&x->sign, &y->sign, \
|
||||
y->wds*sizeof(Long) + 2*sizeof(int))
|
||||
@ -471,7 +471,7 @@ multadd
|
||||
b->wds = wds;
|
||||
}
|
||||
return b;
|
||||
}
|
||||
}
|
||||
|
||||
static Bigint *
|
||||
s2b
|
||||
@ -509,7 +509,7 @@ s2b
|
||||
for(; i < nd; i++)
|
||||
b = multadd(b, 10, *s++ - '0');
|
||||
return b;
|
||||
}
|
||||
}
|
||||
|
||||
static int
|
||||
hi0bits
|
||||
@ -543,7 +543,7 @@ hi0bits
|
||||
return 32;
|
||||
}
|
||||
return k;
|
||||
}
|
||||
}
|
||||
|
||||
static int
|
||||
lo0bits
|
||||
@ -591,7 +591,7 @@ lo0bits
|
||||
}
|
||||
*y = x;
|
||||
return k;
|
||||
}
|
||||
}
|
||||
|
||||
static Bigint *
|
||||
i2b
|
||||
@ -607,7 +607,7 @@ i2b
|
||||
b->x[0] = i;
|
||||
b->wds = 1;
|
||||
return b;
|
||||
}
|
||||
}
|
||||
|
||||
static Bigint *
|
||||
mult
|
||||
@ -695,7 +695,7 @@ mult
|
||||
for(xc0 = c->x, xc = xc0 + wc; wc > 0 && !*--xc; --wc) ;
|
||||
c->wds = wc;
|
||||
return c;
|
||||
}
|
||||
}
|
||||
|
||||
static Bigint *p5s;
|
||||
|
||||
@ -736,7 +736,7 @@ pow5mult
|
||||
p5 = p51;
|
||||
}
|
||||
return b;
|
||||
}
|
||||
}
|
||||
|
||||
static Bigint *
|
||||
lshift
|
||||
@ -796,7 +796,7 @@ lshift
|
||||
b1->wds = n1 - 1;
|
||||
Bfree(b);
|
||||
return b1;
|
||||
}
|
||||
}
|
||||
|
||||
static int
|
||||
cmp
|
||||
@ -830,7 +830,7 @@ cmp
|
||||
break;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
static Bigint *
|
||||
diff
|
||||
@ -912,7 +912,7 @@ diff
|
||||
wa--;
|
||||
c->wds = wa;
|
||||
return c;
|
||||
}
|
||||
}
|
||||
|
||||
static double
|
||||
ulp
|
||||
@ -952,7 +952,7 @@ ulp
|
||||
}
|
||||
#endif
|
||||
return value(a);
|
||||
}
|
||||
}
|
||||
|
||||
static double
|
||||
b2d
|
||||
@ -1022,7 +1022,7 @@ b2d
|
||||
#undef d1
|
||||
#endif
|
||||
return value(d);
|
||||
}
|
||||
}
|
||||
|
||||
static Bigint *
|
||||
d2b
|
||||
@ -1154,7 +1154,7 @@ d2b
|
||||
}
|
||||
#endif
|
||||
return b;
|
||||
}
|
||||
}
|
||||
#undef d0
|
||||
#undef d1
|
||||
|
||||
@ -1197,7 +1197,7 @@ ratio
|
||||
}
|
||||
#endif
|
||||
return value(da) / value(db);
|
||||
}
|
||||
}
|
||||
|
||||
static CONST double
|
||||
tens[] = {
|
||||
@ -1207,7 +1207,7 @@ tens[] = {
|
||||
#ifdef VAX
|
||||
, 1e23, 1e24
|
||||
#endif
|
||||
};
|
||||
};
|
||||
|
||||
#ifdef IEEE_Arith
|
||||
static CONST double bigtens[] = { 1e16, 1e32, 1e64, 1e128, 1e256 };
|
||||
@ -1498,7 +1498,6 @@ strtod
|
||||
else
|
||||
word0(rv) += P*Exp_msk1;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
else if (e1 < 0) {
|
||||
@ -1802,7 +1801,7 @@ strtod
|
||||
/* LINTED interface specification */
|
||||
*se = (char *)s;
|
||||
return sign ? -value(rv) : value(rv);
|
||||
}
|
||||
}
|
||||
|
||||
static int
|
||||
quorem
|
||||
@ -1908,7 +1907,7 @@ quorem
|
||||
}
|
||||
}
|
||||
return q;
|
||||
}
|
||||
}
|
||||
|
||||
/* freedtoa(s) must be used to free values s returned by dtoa
|
||||
* when MULTIPLE_THREADS is #defined. It should be used in all cases,
|
||||
@ -2584,7 +2583,7 @@ __dtoa
|
||||
if (rve)
|
||||
*rve = s;
|
||||
return s0;
|
||||
}
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user