Skip to content
Snippets Groups Projects
  • Joseph Myers's avatar
    bc6d4c3f
    dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined. · bc6d4c3f
    Joseph Myers authored
    gcc:
    	* dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
    	(encode_decimal64, decode_decimal64, encode_decimal128,
    	decode_decimal128): Reverse order of 32-bit parts of value if host
    	and target endianness differ.
    
    libdecnumber:
    	* dconfig.h: New.
    	* decContext.c, decExcept.c, decExcept.h, decLibrary.c,
    	decNumber.c, decNumberLocal.h, decRound.c, dpd/decimal128.c,
    	dpd/decimal32.c, dpd/decimal64.c: Include dconfig.h not config.h.
    	* dpd/decimal128Local.h (decimal128SetSign, decimal128ClearSign,
    	decimal128FlipSign): Use WORDS_BIGENDIAN not
    	FLOAT_WORDS_BIG_ENDIAN.
    	* bid/host-ieee128.c: Include dconfig.h.
    	(__host_to_ieee_128, __ieee_to_host_128): Swap 64-bit halves of
    	value if WORDS_BIGENDIAN.
    
    libgcc:
    	* Makefile.in (DECNUMINC): Remove
    	-I$(MULTIBUILDTOP)../../libdecnumber.
    	* gstdint.h: New.
    
    From-SVN: r136641
    bc6d4c3f
    History
    dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
    Joseph Myers authored
    gcc:
    	* dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
    	(encode_decimal64, decode_decimal64, encode_decimal128,
    	decode_decimal128): Reverse order of 32-bit parts of value if host
    	and target endianness differ.
    
    libdecnumber:
    	* dconfig.h: New.
    	* decContext.c, decExcept.c, decExcept.h, decLibrary.c,
    	decNumber.c, decNumberLocal.h, decRound.c, dpd/decimal128.c,
    	dpd/decimal32.c, dpd/decimal64.c: Include dconfig.h not config.h.
    	* dpd/decimal128Local.h (decimal128SetSign, decimal128ClearSign,
    	decimal128FlipSign): Use WORDS_BIGENDIAN not
    	FLOAT_WORDS_BIG_ENDIAN.
    	* bid/host-ieee128.c: Include dconfig.h.
    	(__host_to_ieee_128, __ieee_to_host_128): Swap 64-bit halves of
    	value if WORDS_BIGENDIAN.
    
    libgcc:
    	* Makefile.in (DECNUMINC): Remove
    	-I$(MULTIBUILDTOP)../../libdecnumber.
    	* gstdint.h: New.
    
    From-SVN: r136641