libdecnumber: Modify dconfig.h to Integrate with QEMU
Modify the dconfig.h header file so that libdecnumber code integrates QEMU
configuration.   Specifically:
  - the WORDS_BIGENDIAN preprocessor macro is used in libdecnumber code to
    determines endianness.  It is derived from the existing QEMU macro
    HOST_WORDS_BIGENDIAN which is defined in config-host.h.
  - the DECPUN macro determines the number of decimal digits (aka declets) per
    unit (byte).  This is 3 for PowerPC DFP.
Signed-off-by: Tom Musta <tommusta@gmail.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
			
			
This commit is contained in:
		
							parent
							
								
									0f2d373220
								
							
						
					
					
						commit
						7275585b8c
					
				@ -27,26 +27,14 @@
 | 
				
			|||||||
   Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
 | 
					   Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
 | 
				
			||||||
   02110-1301, USA.  */
 | 
					   02110-1301, USA.  */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef IN_LIBGCC2
 | 
					#include "config-host.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "tconfig.h"
 | 
					#if defined(HOST_WORDS_BIGENDIAN)
 | 
				
			||||||
#include "coretypes.h"
 | 
					 | 
				
			||||||
#include "tm.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#ifndef LIBGCC2_WORDS_BIG_ENDIAN
 | 
					 | 
				
			||||||
#define LIBGCC2_WORDS_BIG_ENDIAN WORDS_BIG_ENDIAN
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#ifndef LIBGCC2_FLOAT_WORDS_BIG_ENDIAN
 | 
					 | 
				
			||||||
#define LIBGCC2_FLOAT_WORDS_BIG_ENDIAN LIBGCC2_WORDS_BIG_ENDIAN
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#if LIBGCC2_FLOAT_WORDS_BIG_ENDIAN
 | 
					 | 
				
			||||||
#define WORDS_BIGENDIAN 1
 | 
					#define WORDS_BIGENDIAN 1
 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#else
 | 
					#else
 | 
				
			||||||
 | 
					#define WORDS_BIGENDIAN 0
 | 
				
			||||||
#include "config.h"
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifndef DECDPUN
 | 
				
			||||||
 | 
					#define DECDPUN 3
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user