gmio_core: remove non-supported GMIO_MIDDLE_ENDIAN byte order
This commit is contained in:
parent
828f970da5
commit
a5eef58d83
@ -34,8 +34,6 @@ gmio_endianness_t gmio_host_endianness()
|
|||||||
return GMIO_LITTLE_ENDIAN;
|
return GMIO_LITTLE_ENDIAN;
|
||||||
if (conv.bytes[0] == 0x01 && conv.bytes[3] == 0x08)
|
if (conv.bytes[0] == 0x01 && conv.bytes[3] == 0x08)
|
||||||
return GMIO_BIG_ENDIAN;
|
return GMIO_BIG_ENDIAN;
|
||||||
if (conv.bytes[1] == 0x08 && conv.bytes[2] == 0x01)
|
|
||||||
return GMIO_MIDDLE_ENDIAN;
|
|
||||||
return GMIO_OTHER_ENDIAN;
|
return GMIO_OTHER_ENDIAN;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,16 +27,21 @@ enum gmio_endianness
|
|||||||
{
|
{
|
||||||
GMIO_LITTLE_ENDIAN,
|
GMIO_LITTLE_ENDIAN,
|
||||||
GMIO_BIG_ENDIAN,
|
GMIO_BIG_ENDIAN,
|
||||||
GMIO_MIDDLE_ENDIAN,
|
|
||||||
GMIO_OTHER_ENDIAN
|
GMIO_OTHER_ENDIAN
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef enum gmio_endianness gmio_endianness_t;
|
typedef enum gmio_endianness gmio_endianness_t;
|
||||||
|
|
||||||
|
/*! Constants for host endianness */
|
||||||
enum {
|
enum {
|
||||||
#ifdef GMIO_HOST_IS_BIG_ENDIAN
|
#ifdef GMIO_HOST_IS_BIG_ENDIAN
|
||||||
GMIO_HOST_ENDIANNESS = GMIO_BIG_ENDIAN
|
GMIO_HOST_ENDIANNESS = GMIO_BIG_ENDIAN
|
||||||
#else
|
#else
|
||||||
|
/*! Defines the endianness(byte order) used by the host computer for storing
|
||||||
|
* data in memory.
|
||||||
|
*
|
||||||
|
* It is set at configure-time to one of the value of gmio_endianness
|
||||||
|
*/
|
||||||
GMIO_HOST_ENDIANNESS = GMIO_LITTLE_ENDIAN
|
GMIO_HOST_ENDIANNESS = GMIO_LITTLE_ENDIAN
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user