sfinit.c revision 1
1N/A/*********************************************************************** 1N/A* This software is part of the ast package * 1N/A* Copyright (c) 1985-2011 AT&T Intellectual Property * 1N/A* and is licensed under the * 1N/A* Common Public License, Version 1.0 * 1N/A* by AT&T Intellectual Property * 1N/A* A copy of the License is available at * 1N/A* (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) * 1N/A* Information and Software Systems Research * 1N/A* Glenn Fowler <gsf@research.att.com> * 1N/A* David Korn <dgk@research.att.com> * 1N/A* Phong Vo <kpv@research.att.com> * 1N/A***********************************************************************/ 1N/A * generate sfio _Sftable static initializers 1N/A printf(
"\nstatic const float sf_flt_pow10[] =\n{\n");
1N/A printf(
"\nstatic const double sf_dbl_pow10[] =\n{\n");
1N/A printf(
"\nstatic const _ast_fltmax_t sf_ldbl_pow10[] =\n{\n");
1N/A printf(
"\t{ 1E1%s, 1E2%s, 1E4%s, 1E8%s, 1E16%s, 1E32%s },\n",
ls,
ls,
ls,
ls,
ls,
ls);
1N/A printf(
"\t{ 1E-1%s, 1E-2%s, 1E-4%s, 1E-8%s, 1E-16%s, 1E-32%s },\n",
ls,
ls,
ls,
ls,
ls,
ls);
1N/A printf(
"\t{ '0','0', '0','1', '0','2', '0','3', '0','4',\n");
1N/A printf(
"\t '0','5', '0','6', '0','7', '0','8', '0','9',\n");
1N/A printf(
"\t '1','0', '1','1', '1','2', '1','3', '1','4',\n");
1N/A printf(
"\t '1','5', '1','6', '1','7', '1','8', '1','9',\n");
1N/A printf(
"\t '2','0', '2','1', '2','2', '2','3', '2','4',\n");
1N/A printf(
"\t '2','5', '2','6', '2','7', '2','8', '2','9',\n");
1N/A printf(
"\t '3','0', '3','1', '3','2', '3','3', '3','4',\n");
1N/A printf(
"\t '3','5', '3','6', '3','7', '3','8', '3','9',\n");
1N/A printf(
"\t '4','0', '4','1', '4','2', '4','3', '4','4',\n");
1N/A printf(
"\t '4','5', '4','6', '4','7', '4','8', '4','9',\n");
1N/A printf(
"\t '5','0', '5','1', '5','2', '5','3', '5','4',\n");
1N/A printf(
"\t '5','5', '5','6', '5','7', '5','8', '5','9',\n");
1N/A printf(
"\t '6','0', '6','1', '6','2', '6','3', '6','4',\n");
1N/A printf(
"\t '6','5', '6','6', '6','7', '6','8', '6','9',\n");
1N/A printf(
"\t '7','0', '7','1', '7','2', '7','3', '7','4',\n");
1N/A printf(
"\t '7','5', '7','6', '7','7', '7','8', '7','9',\n");
1N/A printf(
"\t '8','0', '8','1', '8','2', '8','3', '8','4',\n");
1N/A printf(
"\t '8','5', '8','6', '8','7', '8','8', '8','9',\n");
1N/A printf(
"\t '9','0', '9','1', '9','2', '9','3', '9','4',\n");
1N/A printf(
"\t '9','5', '9','6', '9','7', '9','8', '9','9',\n");
1N/A printf(
"\t\"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ@_\",\n");
1N/A printf(
"\t(_ast_fltmax_t*)&sf_ldbl_pow10[0],\n");