]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - math/w_log10l.c
Update copyright dates with scripts/update-copyrights.
[thirdparty/glibc.git] / math / w_log10l.c
index 6f81f3961ad43a47e1cc8f59dc12ae839d0a6822..67a9e19824190c551290025d203cba1223038cd2 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2011 Free Software Foundation, Inc.
+/* Copyright (C) 2011-2015 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@gmail.com>, 2011.
 
@@ -13,9 +13,8 @@
    Lesser General Public License for more details.
 
    You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, write to the Free
-   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-   02111-1307 USA.  */
+   License along with the GNU C Library; if not, see
+   <http://www.gnu.org/licenses/>.  */
 
 #include <fenv.h>
 #include <math.h>
 long double
 __log10l (long double x)
 {
-  if (__builtin_expect (x <= 0.0L, 0) && _LIB_VERSION != _IEEE_)
+  if (__builtin_expect (islessequal (x, 0.0L), 0) && _LIB_VERSION != _IEEE_)
     {
       if (x == 0.0L)
        {
          feraiseexcept (FE_DIVBYZERO);
-         return __kernel_standard (x, x, 218); /* log10(0) */
+         return __kernel_standard_l (x, x, 218); /* log10(0) */
        }
       else
        {
          feraiseexcept (FE_INVALID);
-         return __kernel_standard (x, x, 219); /* log10(x<0) */
+         return __kernel_standard_l (x, x, 219); /* log10(x<0) */
        }
     }