This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 7/8] float128: Add private _Float128 declarations for libm.


On Wed, 9 Nov 2016, Gabriel F. T. Gomes wrote:

> +/* __builtin_isinf_sign is broken in GCC < 7 for float128.  */
> +#  include <ieee754_float128.h>
> +extern inline int __isinff128(_Float128 x)
> +{
> +	int64_t hx,lx;
> +	GET_FLOAT128_WORDS64 (hx,lx,x);
> +	lx |= (hx & 0x7fffffffffffffffLL) ^ 0x7fff000000000000LL;
> +	lx |= -lx;
> +	return ~(lx >> 63) & (hx >> 62);
> +}
> +# endif
> +
> +extern inline _Float128 __copysignf128 (_Float128 x, _Float128 y)
> +{ return BUILTIN_COPYSIGNF128 (x, y); }
> +extern inline _Float128 fabsf128 (_Float128 x)
> +{ return BUILTIN_FABSF128 (x); }
> +#endif

New code should be formatted in GNU style.

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]