]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - math/w_acoshl.c
Use non-signaling floating-point comparisons in math functions.
[thirdparty/glibc.git] / math / w_acoshl.c
index 819bdfce1019a62a8803192103c29873c0e9258b..cc823b88e913a22e0d099f3db0408a64c24d866a 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2011 Free Software Foundation, Inc.
+/* Copyright (C) 2011, 2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@gmail.com>, 2011.
 
@@ -24,7 +24,7 @@
 long double
 __acoshl (long double x)
 {
-  if (__builtin_expect (x < 1.0L, 0) && _LIB_VERSION != _IEEE_)
+  if (__builtin_expect (isless (x, 1.0L), 0) && _LIB_VERSION != _IEEE_)
     /* acosh(x<1) */
     return __kernel_standard (x, x, 229);