X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Ftruncl.c;h=bdeb01e133ed409ee67b5ebb88d65951bdf20945;hb=387c96fc38b1985d677a25881ab99a449a00af22;hp=aa0d40549c318999b2ca05143cd8cdf652da50f9;hpb=d60f3b0c6b0f93a601acd1cfd3923f94ca05abb0;p=gnulib.git diff --git a/lib/truncl.c b/lib/truncl.c index aa0d40549..bdeb01e13 100644 --- a/lib/truncl.c +++ b/lib/truncl.c @@ -1,5 +1,5 @@ /* Round towards zero. - Copyright (C) 2007, 2009-2011 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