From ab1d66234a0363009e2081c310ddeb9c211b9752 Mon Sep 17 00:00:00 2001 From: Danny Smith Date: Wed, 6 Sep 2006 22:03:16 +0000 Subject: * mingwex/gdtoa/misc.c (pow5mult): Restore original code. * mingwex/gdtoa/gdtoa.h. Add comment that files have been modified. * mingwex/gdtoa/gdtoaimp.h: Include system headers with <> brackets. --- winsup/mingw/mingwex/gdtoa/misc.c | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) (limited to 'winsup/mingw/mingwex/gdtoa/misc.c') diff --git a/winsup/mingw/mingwex/gdtoa/misc.c b/winsup/mingw/mingwex/gdtoa/misc.c index a3010d9c2..784f900c2 100755 --- a/winsup/mingw/mingwex/gdtoa/misc.c +++ b/winsup/mingw/mingwex/gdtoa/misc.c @@ -36,7 +36,7 @@ THIS SOFTWARE. #define WIN32_LEAN_AND_MEAN #include -#define NLOCKS 1 +#define NLOCKS 2 #ifdef USE_WIN32_SL /* Use spin locks. */ @@ -111,15 +111,12 @@ static void dtoa_unlock(int n) #endif /* __MINGW32__ */ - #include "gdtoaimp.h" - #ifndef MULTIPLE_THREADS char *dtoa_result; #endif - static Bigint *freelist[Kmax+1]; #ifndef Omit_Private_Memory #ifndef PRIVATE_MEM @@ -460,25 +457,6 @@ mult return c; } -#if 1 -/* Returns (*b) * (5**k). b is modified. */ -/* Re-written by Per Bothner to not need a static list. */ - -Bigint * -pow5mult(Bigint *b, int k) -{ - static int p05[6] = { 5, 25, 125, 625, 3125, 15625 }; - - for (; k > 6; k -= 6) - multadd(b, 15625, 0); /* b *= 5**6 */ - if (k != 0) - multadd(b, p05[k-1], 0); - return b; -} - - -#else /* Original code */ - static Bigint *p5s; Bigint * @@ -537,7 +515,6 @@ pow5mult } return b; } -#endif /* Original code */ Bigint * -- cgit v1.2.3