X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=lib%2Ffrexpl.c;h=b74ceeb56f815890e3515790dce9f33bd614a4c9;hb=dc84183747ce1703eb99685b5dbde1f65a143c06;hp=c80599953947bb54a80c2ccfb7842a1a026b415b;hpb=a2016c1de6e4884f6c8ed5cc498f3bf821c25ca4;p=debian%2Fgzip diff --git a/lib/frexpl.c b/lib/frexpl.c index c805999..b74ceeb 100644 --- a/lib/frexpl.c +++ b/lib/frexpl.c @@ -1,5 +1,5 @@ /* Split a 'long double' into fraction and mantissa. - 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,22 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#define USE_LONG_DOUBLE -#include "frexp.c" +#include + +#if HAVE_SAME_LONG_DOUBLE_AS_DOUBLE + +/* Specification. */ +# include + +long double +frexpl (long double x, int *expptr) +{ + return frexp (x, expptr); +} + +#else + +# define USE_LONG_DOUBLE +# include "frexp.c" + +#endif