X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=lib%2Fprintf-frexpl.c;fp=lib%2Fprintf-frexpl.c;h=568d2ffc90638c2d080a12aa788d912efa755ceb;hb=dc84183747ce1703eb99685b5dbde1f65a143c06;hp=36bac7492b2cbb6991ec4451414c06ebd4e2b380;hpb=a2016c1de6e4884f6c8ed5cc498f3bf821c25ca4;p=debian%2Fgzip diff --git a/lib/printf-frexpl.c b/lib/printf-frexpl.c index 36bac74..568d2ff 100644 --- a/lib/printf-frexpl.c +++ b/lib/printf-frexpl.c @@ -1,5 +1,5 @@ /* Split a 'long double' into fraction and mantissa, for hexadecimal printf. - Copyright (C) 2007, 2009, 2010 Free Software Foundation, Inc. + Copyright (C) 2007, 2009-2012 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -14,5 +14,24 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#define USE_LONG_DOUBLE -#include "printf-frexp.c" +#include + +#if HAVE_SAME_LONG_DOUBLE_AS_DOUBLE + +/* Specification. */ +# include "printf-frexpl.h" + +# include "printf-frexp.h" + +long double +printf_frexpl (long double x, int *expptr) +{ + return printf_frexp (x, expptr); +} + +#else + +# define USE_LONG_DOUBLE +# include "printf-frexp.c" + +#endif