X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Ftruncl.c;h=bdeb01e133ed409ee67b5ebb88d65951bdf20945;hb=66f5e6513c46dffcb40b216e3709b84ab5fbc392;hp=a7070139bdf454882d59136467cfc1ba90439df9;hpb=b2e2010c7c902235b5efb5bd3c6529f61b093aa4;p=gnulib.git diff --git a/lib/truncl.c b/lib/truncl.c index a7070139b..bdeb01e13 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-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 @@ -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