[Python-checkins] r71233 - python/branches/py3k-short-float-repr/Python/dtoa.c
mark.dickinson
python-checkins at python.org
Sun Apr 5 15:07:00 CEST 2009
Author: mark.dickinson
Date: Sun Apr 5 15:07:00 2009
New Revision: 71233
Log:
Remove Need_Hexdig define and associated code
Modified:
python/branches/py3k-short-float-repr/Python/dtoa.c
Modified: python/branches/py3k-short-float-repr/Python/dtoa.c
==============================================================================
--- python/branches/py3k-short-float-repr/Python/dtoa.c (original)
+++ python/branches/py3k-short-float-repr/Python/dtoa.c Sun Apr 5 15:07:00 2009
@@ -1076,34 +1076,6 @@
#define Scale_Bit 0x10
#define n_bigtens 5
-#undef Need_Hexdig
-#ifdef INFNAN_CHECK
-#endif
-
-#ifndef Need_Hexdig
-#endif
-
-#ifdef Need_Hexdig /*{*/
-static unsigned char hexdig[256];
-
- static void
-htinit(unsigned char *h, unsigned char *s, int inc)
-{
- int i, j;
- for(i = 0; (j = s[i]) !=0; i++)
- h[j] = i + inc;
- }
-
- static void
-hexdig_init(void)
-{
-#define USC (unsigned char *)
- htinit(hexdig, USC "0123456789", 0x10);
- htinit(hexdig, USC "abcdef", 0x10 + 10);
- htinit(hexdig, USC "ABCDEF", 0x10 + 10);
- }
-#endif /* } Need_Hexdig */
-
#ifdef INFNAN_CHECK
#ifndef NAN_WORD0
More information about the Python-checkins
mailing list