Commit 2da81fa8 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

mpconfig.h: Add basic support for target endianness configuration.

A specific target can define either MP_ENDIANNESS_LITTLE or MP_ENDIANNESS_BIG
to 1. Default is MP_ENDIANNESS_LITTLE.

TODO: Autodetect based on compiler predefined macros?
parent 6582d64d
......@@ -169,6 +169,11 @@ typedef double mp_float_t;
// machine_int_t value with most significant bit set
#define WORD_MSBIT_HIGH (((machine_uint_t)1) << (BYTES_PER_WORD * 8 - 1))
// Just because most archs are such?
// printf format spec to use for machine_int_t and friends
#ifndef INT_FMT
#ifdef __LP64__
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment