X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fisinf.c;h=5d408125ad1fc131f0053e8dddd3f8103bae3a1f;hb=a3232e87aa43983f16befedc0b6311ac02aceacb;hp=cba9edee88d198b1dbc04c555516e8e700f60a30;hpb=d60f3b0c6b0f93a601acd1cfd3923f94ca05abb0;p=gnulib.git diff --git a/lib/isinf.c b/lib/isinf.c index cba9edee8..5d408125a 100644 --- a/lib/isinf.c +++ b/lib/isinf.c @@ -1,5 +1,5 @@ /* Test for positive or negative infinity. - Copyright (C) 2007-2011 Free Software Foundation, Inc. + Copyright (C) 2007-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 @@ -12,8 +12,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along - with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + with this program; if not, see . */ /* Written by Ben Pfaff , 2008. */ @@ -21,17 +20,20 @@ #include -int gl_isinff (float x) +int +gl_isinff (float x) { return x < -FLT_MAX || x > FLT_MAX; } -int gl_isinfd (double x) +int +gl_isinfd (double x) { return x < -DBL_MAX || x > DBL_MAX; } -int gl_isinfl (long double x) +int +gl_isinfl (long double x) { return x < -LDBL_MAX || x > LDBL_MAX; }