rename local pow10 function to avoid conflicts with the C99 libm one;

while not implemented in NetBSD yet is is considered reserved by gcc-3.4
This commit is contained in:
drochner 2004-08-05 16:55:34 +00:00
parent f024db680d
commit 14c8904f79
1 changed files with 4 additions and 4 deletions

View File

@ -576,7 +576,7 @@ abs_val(LDOUBLE value)
}
static LDOUBLE
pow10(int in_exp)
ipow10(int in_exp)
{
LDOUBLE result = 1;
while (in_exp) {
@ -639,11 +639,11 @@ fmtfp(
/* we "cheat" by converting the fractional part to integer by
multiplying by a factor of 10 */
fracpart = roundv((pow10(max)) * (ufvalue - intpart));
fracpart = roundv((ipow10(max)) * (ufvalue - intpart));
if (fracpart >= pow10(max)) {
if (fracpart >= ipow10(max)) {
intpart++;
fracpart -= (long)pow10(max);
fracpart -= (long)ipow10(max);
}
/* convert integer part */