Blame SOURCES/glibc-rh731837-33A.patch
|
|
00db10 |
--- glibc-2.17-c758a686/sysdeps/powerpc/power7/fpu/s_logbl.c 2014-09-10 20:52:01.813168232 -0400
|
|
|
00db10 |
+++ glibc-2.17-c758a686/sysdeps/powerpc/power7/fpu/s_logbl.c 2014-01-02 13:16:41.441557403 -0500
|
|
|
00db10 |
@@ -1,5 +1,5 @@
|
|
|
00db10 |
/* logbl(). PowerPC/POWER7 version.
|
|
|
00db10 |
- Copyright (C) 2012 Free Software Foundation, Inc.
|
|
|
00db10 |
+ Copyright (C) 2012-2014 Free Software Foundation, Inc.
|
|
|
00db10 |
This file is part of the GNU C Library.
|
|
|
00db10 |
|
|
|
00db10 |
The GNU C Library is free software; you can redistribute it and/or
|
|
|
00db10 |
@@ -35,14 +35,14 @@
|
|
|
00db10 |
long double
|
|
|
00db10 |
__logbl (long double x)
|
|
|
00db10 |
{
|
|
|
00db10 |
- double xh, xl;
|
|
|
00db10 |
+ double xh;
|
|
|
00db10 |
double ret;
|
|
|
00db10 |
|
|
|
00db10 |
if (__builtin_expect (x == 0.0L, 0))
|
|
|
00db10 |
/* Raise FE_DIVBYZERO and return -HUGE_VAL[LF]. */
|
|
|
00db10 |
return -1.0L / __builtin_fabsl (x);
|
|
|
00db10 |
|
|
|
00db10 |
- ldbl_unpack (x, &xh, &xl);
|
|
|
00db10 |
+ xh = ldbl_high (x);
|
|
|
00db10 |
/* ret = x & 0x7ff0000000000000; */
|
|
|
00db10 |
asm (
|
|
|
00db10 |
"xxland %x0,%x1,%x2\n"
|
|
|
00db10 |
@@ -58,15 +58,14 @@
|
|
|
00db10 |
{
|
|
|
00db10 |
/* POSIX specifies that denormal number is treated as
|
|
|
00db10 |
though it were normalized. */
|
|
|
00db10 |
- int64_t lx, hx;
|
|
|
00db10 |
+ int64_t hx;
|
|
|
00db10 |
|
|
|
00db10 |
- GET_LDOUBLE_WORDS64 (hx, lx, x);
|
|
|
00db10 |
+ EXTRACT_WORDS64 (hx, xh);
|
|
|
00db10 |
return (long double) (-1023 - (__builtin_clzll (hx) - 12));
|
|
|
00db10 |
}
|
|
|
00db10 |
/* Test to avoid logb_downward (0.0) == -0.0. */
|
|
|
00db10 |
return ret == -0.0 ? 0.0 : ret;
|
|
|
00db10 |
}
|
|
|
00db10 |
-
|
|
|
00db10 |
#ifndef __logbl
|
|
|
00db10 |
long_double_symbol (libm, __logbl, logbl);
|
|
|
00db10 |
#endif
|