ossp-pkg/uuid/uuid_str.c 1.2 -> 1.3
--- uuid_str.c 2004/01/18 19:22:54 1.2
+++ uuid_str.c 2004/02/16 09:13:58 1.3
@@ -482,7 +482,7 @@
}
static LDOUBLE
-abs_val(LDOUBLE value)
+math_abs(LDOUBLE value)
{
LDOUBLE result = value;
if (value < 0)
@@ -491,7 +491,7 @@
}
static LDOUBLE
-pow10(int exponent)
+math_pow10(int exponent)
{
LDOUBLE result = 1;
while (exponent > 0) {
@@ -502,7 +502,7 @@
}
static long
-round(LDOUBLE value)
+math_round(LDOUBLE value)
{
long intpart;
intpart = (long) value;
@@ -536,7 +536,7 @@
if (max < 0)
max = 6;
- ufvalue = abs_val(fvalue);
+ ufvalue = math_abs(fvalue);
if (fvalue < 0)
signvalue = '-';
else if (flags & DP_F_PLUS)
@@ -553,11 +553,11 @@
/* we "cheat" by converting the fractional part to integer by
multiplying by a factor of 10 */
- fracpart = round((pow10(max)) * (ufvalue - intpart));
+ fracpart = math_round((math_pow10(max)) * (ufvalue - intpart));
- if (fracpart >= pow10(max)) {
+ if (fracpart >= math_pow10(max)) {
intpart++;
- fracpart -= (long)pow10(max);
+ fracpart -= (long)math_pow10(max);
}
/* convert integer part */
|
|