mirror of git://sourceware.org/git/glibc.git
Make ldbl-128 getpayload, setpayload functions use _Float128.
When I added the getpayload and setpayload functions I failed to make the ldbl-128 functions use the _Float128 type name like most other ldbl-128 functions do in preparation for being used to implement *f128 functions. This patch fixes them to use that name. Tested for mips64. * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Use _Float128 instead of long double. * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c (FUNC): Likewise.
This commit is contained in:
parent
2314a29b62
commit
6dc0741677
|
|
@ -1,5 +1,9 @@
|
||||||
2016-12-01 Joseph Myers <joseph@codesourcery.com>
|
2016-12-01 Joseph Myers <joseph@codesourcery.com>
|
||||||
|
|
||||||
|
* sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Use
|
||||||
|
_Float128 instead of long double.
|
||||||
|
* sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c (FUNC): Likewise.
|
||||||
|
|
||||||
* sysdeps/alpha/setjmp.S (__sigsetjmp): Use hidden_def.
|
* sysdeps/alpha/setjmp.S (__sigsetjmp): Use hidden_def.
|
||||||
* sysdeps/hppa/setjmp.S (__sigsetjmp): Likewise.
|
* sysdeps/hppa/setjmp.S (__sigsetjmp): Likewise.
|
||||||
* sysdeps/mips/mips64/setjmp.S (__sigsetjmp): Likewise.
|
* sysdeps/mips/mips64/setjmp.S (__sigsetjmp): Likewise.
|
||||||
|
|
|
||||||
|
|
@ -20,8 +20,8 @@
|
||||||
#include <math_private.h>
|
#include <math_private.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
long double
|
_Float128
|
||||||
getpayloadl (const long double *x)
|
getpayloadl (const _Float128 *x)
|
||||||
{
|
{
|
||||||
uint64_t hx, lx;
|
uint64_t hx, lx;
|
||||||
GET_LDOUBLE_WORDS64 (hx, lx, *x);
|
GET_LDOUBLE_WORDS64 (hx, lx, *x);
|
||||||
|
|
@ -51,7 +51,7 @@ getpayloadl (const long double *x)
|
||||||
lx <<= shift;
|
lx <<= shift;
|
||||||
}
|
}
|
||||||
hx = (hx & 0xffffffffffffULL) | ((0x3fffULL + 127 - lz) << 48);
|
hx = (hx & 0xffffffffffffULL) | ((0x3fffULL + 127 - lz) << 48);
|
||||||
long double ret;
|
_Float128 ret;
|
||||||
SET_LDOUBLE_WORDS64 (ret, hx, lx);
|
SET_LDOUBLE_WORDS64 (ret, hx, lx);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@
|
||||||
#define EXPLICIT_MANT_DIG 112
|
#define EXPLICIT_MANT_DIG 112
|
||||||
|
|
||||||
int
|
int
|
||||||
FUNC (long double *x, long double payload)
|
FUNC (_Float128 *x, _Float128 payload)
|
||||||
{
|
{
|
||||||
uint64_t hx, lx;
|
uint64_t hx, lx;
|
||||||
GET_LDOUBLE_WORDS64 (hx, lx, payload);
|
GET_LDOUBLE_WORDS64 (hx, lx, payload);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue