STFS loading... xex's load, but files seem broken. Ugh.
This commit is contained in:
@@ -76,6 +76,10 @@ XEFORCEINLINE double XESWAPF64BE(double value) {
|
||||
#define XEGETUINT8BE(p) ( (uint8_t)(*(p)))
|
||||
#define XEGETINT16BE(p) ( (int16_t)XESWAP16BE(*(uint16_t*)(p)))
|
||||
#define XEGETUINT16BE(p) ((uint16_t)XESWAP16BE(*(uint16_t*)(p)))
|
||||
#define XEGETUINT24BE(p) \
|
||||
(((uint32_t)XEGETUINT8BE((p) + 0) << 16) | \
|
||||
((uint32_t)XEGETUINT8BE((p) + 1) << 8) | \
|
||||
(uint32_t)XEGETUINT8BE((p) + 2))
|
||||
#define XEGETINT32BE(p) ( (int32_t)XESWAP32BE(*(uint32_t*)(p)))
|
||||
#define XEGETUINT32BE(p) ((uint32_t)XESWAP32BE(*(uint32_t*)(p)))
|
||||
#define XEGETINT64BE(p) ( (int64_t)XESWAP64BE(*(uint64_t*)(p)))
|
||||
@@ -84,6 +88,10 @@ XEFORCEINLINE double XESWAPF64BE(double value) {
|
||||
#define XEGETUINT8LE(p) ( (uint8_t)(*(p)))
|
||||
#define XEGETINT16LE(p) ( (int16_t)XESWAP16LE(*(uint16_t*)(p)))
|
||||
#define XEGETUINT16LE(p) ((uint16_t)XESWAP16LE(*(uint16_t*)(p)))
|
||||
#define XEGETUINT24LE(p) \
|
||||
(((uint32_t)XEGETUINT8LE((p) + 2) << 16) | \
|
||||
((uint32_t)XEGETUINT8LE((p) + 1) << 8) | \
|
||||
(uint32_t)XEGETUINT8LE((p) + 0))
|
||||
#define XEGETINT32LE(p) ( (int32_t)XESWAP32LE(*(uint32_t*)(p)))
|
||||
#define XEGETUINT32LE(p) ((uint32_t)XESWAP32LE(*(uint32_t*)(p)))
|
||||
#define XEGETINT64LE(p) ( (int64_t)XESWAP64LE(*(uint64_t*)(p)))
|
||||
|
||||
Reference in New Issue
Block a user