X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Ffloorl.c;h=54ffb679ca2c14ad2cdabcab3ea1027389dda178;hb=4779b635ef35c7b0bc4044fcb5bc746d06f158c4;hp=23be78c1e050694c13599512fdecba44828a0324;hpb=57fdfd3f8ec62b105c53bcdf6f127c35c7fe7391;p=gnulib.git diff --git a/lib/floorl.c b/lib/floorl.c index 23be78c1e..54ffb679c 100644 --- a/lib/floorl.c +++ b/lib/floorl.c @@ -1,5 +1,5 @@ /* Round towards negative infinity. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007, 2009-2013 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 @@ -16,5 +16,22 @@ /* Written by Bruno Haible , 2007. */ -#define USE_LONG_DOUBLE -#include "floor.c" +#include + +#if HAVE_SAME_LONG_DOUBLE_AS_DOUBLE + +/* Specification. */ +# include + +long double +floorl (long double x) +{ + return floor (x); +} + +#else + +# define USE_LONG_DOUBLE +# include "floor.c" + +#endif