diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-12-27 16:03:01 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-12-27 16:03:01 +0000 |
commit | 14970231a38310b9561052a67b617138eeaad300 (patch) | |
tree | 35c201a651afa5d5e4fff241280081b3f88b9c2c /sysdeps/ieee754/ldbl-96/s_lroundl.c | |
parent | f08c7420b5e8b017a1a47b880a62b15bdc588f4d (diff) | |
parent | 25ead03a3712d57df2208fe82f3d316eb8faeaf6 (diff) |
Merge commit 'refs/top-bases/t/extern_inline' into t/extern_inline
Diffstat (limited to 'sysdeps/ieee754/ldbl-96/s_lroundl.c')
-rw-r--r-- | sysdeps/ieee754/ldbl-96/s_lroundl.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sysdeps/ieee754/ldbl-96/s_lroundl.c b/sysdeps/ieee754/ldbl-96/s_lroundl.c index 3b43d77e72..0cc9f9c5d6 100644 --- a/sysdeps/ieee754/ldbl-96/s_lroundl.c +++ b/sysdeps/ieee754/ldbl-96/s_lroundl.c @@ -1,5 +1,5 @@ /* Round long double value to long int. - Copyright (C) 1997-2016 Free Software Foundation, Inc. + Copyright (C) 1997-2018 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997. @@ -22,13 +22,14 @@ #include <math.h> #include <math_private.h> +#include <libm-alias-ldouble.h> long int __lroundl (long double x) { int32_t j0; - u_int32_t se, i1, i0; + uint32_t se, i1, i0; long int result; int sign; @@ -42,7 +43,7 @@ __lroundl (long double x) return j0 < -1 ? 0 : sign; else { - u_int32_t j = i0 + (0x40000000 >> j0); + uint32_t j = i0 + (0x40000000 >> j0); if (j < i0) { j >>= 1; @@ -66,7 +67,7 @@ __lroundl (long double x) result = ((long int) i0 << (j0 - 31)) | (i1 << (j0 - 63)); else { - u_int32_t j = i1 + (0x80000000 >> (j0 - 31)); + uint32_t j = i1 + (0x80000000 >> (j0 - 31)); unsigned long int ures = i0; if (j < i1) @@ -108,4 +109,4 @@ __lroundl (long double x) return sign * result; } -weak_alias (__lroundl, lroundl) +libm_alias_ldouble (__lround, lround) |