This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project. See the libstdc++ home page for more information.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Ryszard Kabatek <rysio@rumcajs.chemie.uni-halle.de> writes:
> const char* __fmt_double[][4] = {{"%.*f", "%+.*f", "%#.*f", "+#.*f"},
> {"%.*e", "%+.*e", "%#.*e", "+#.*e"},
> {"%.*g", "%+.*g", "%#.*g", "+#.*g"}};
>
> const char* __fmt_ldouble[][4] = {{"%.*Lf", "%+.*Lf", "%#.*Lf", "+#.*Lf"},
> {"%.*Le", "%+.*Le", "%#.*Le", "+#.*Le"},
> {"%.*Lg", "%+.*Lg", "%#.*Lg", "+#.*Lg"}};
Change the declaration to
const char __fmt_double[][4][8] = ...
This saves relocations and makes the data sharable. This also applies
for the integer formats. Also fix the last column (the % is missing).
--
---------------. drepper at gnu.org ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com `------------------------