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 v2 2/9] float128: Add conversion from float128 to mpn


On Fri, 2 Jun 2017, Gabriel F. T. Gomes wrote:

> Changes since v1:
> 
>   - Removed the [unrelated] change to sys/param.h.  Now gmp-impl.h
>     includes sys/param.h instead of redefining MAX/MIN.
>   - Added an inclusion of bits/floatn.h to include/gmp.h.  It was mistakenly
>     added in the next commit in the series.
>   - Removed the macro __FLOAT128_OVERRIDE in favor of a redefinition of
>     __mpn_extract_long_double to __mpn_extract_float128 in float128_private.h.
> 
> -- 8< --
> Reuse the code for __mpn_extract_long_double to implement
> __mpn_extract_float128.
> 
> 2017-05-15  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
> 
> 	* include/gmp.h: Include bits/floatn.h
> 	(__mpn_extract_float128): Declare when __HAVE_DISTINCT_FLOAT128 is 1.
> 	* stdlib/gmp-impl.h: Also check if alloca is not defined before
> 	including stack-alloc.h.  It could have been defined by other header
> 	which not necessarily defines HAVE_ALLOCA.
> 	* sysdeps/ieee754/float128/Makefile: New file.
> 	* sysdeps/ieee754/float128/float1282mpn.c: New file.
> 	* sysdeps/ieee754/float128/float128_private.h: Include gmp.h before
> 	redefining __mpn_extract_long_double to __mpn_extract_float128, then
> 	redefine __mpn_extract_long_double to __mpn_extract_float128.
> 	* sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Replace long double with
> 	_Float128 to allow float128_private.h overrides.

OK.

-- 
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]