X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fisinf.c;h=7ccca79041118d8272934e522c17d04f221a3257;hb=645581732c2d8066282b32d686edd67e18c52ee2;hp=56ca9ae1db4436d7a21ef2dd610dfaeb7fd978be;hpb=2cc4af230b9c35894b9e6e3515681c0a313ad3cc;p=pspp diff --git a/lib/isinf.c b/lib/isinf.c index 56ca9ae1db..7ccca79041 100644 --- a/lib/isinf.c +++ b/lib/isinf.c @@ -1,5 +1,5 @@ /* Test for positive or negative infinity. - Copyright (C) 2007-2008 Free Software Foundation, Inc. + Copyright (C) 2007-2011 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 @@ -21,17 +21,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; }