X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Ftruncl.c;h=b95372cc59e23b1496c0bdf7e49d03245288a3f8;hb=6fea8a94379432b41d19aa2e9701de0af4db244d;hp=a7070139bdf454882d59136467cfc1ba90439df9;hpb=b2e2010c7c902235b5efb5bd3c6529f61b093aa4;p=gnulib.git diff --git a/lib/truncl.c b/lib/truncl.c index a7070139b..b95372cc5 100644 --- a/lib/truncl.c +++ b/lib/truncl.c @@ -1,5 +1,5 @@ /* Round towards zero. - Copyright (C) 2007, 2009, 2010 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 "trunc.c" +#include + +#if HAVE_SAME_LONG_DOUBLE_AS_DOUBLE + +/* Specification. */ +# include + +long double +truncl (long double x) +{ + return trunc (x); +} + +#else + +# define USE_LONG_DOUBLE +# include "trunc.c" + +#endif