ppc: Fix quic magic endianess

Runtime conversion from a string to uint32 is storing the magic with the same
endianness on both LE and BE machines. This requires aditional byte swap
when sending magic between LE/BE machines.

Changing quic magic to a constant will ensure, that it will be always stored in
native endianness, and the second byte swap won't be needed.
This commit is contained in:
Lukas Venhoda 2015-06-29 14:58:26 +02:00 committed by Christophe Fergeau
parent 5a7e5876e6
commit 6183bbde24

View File

@ -37,7 +37,8 @@
//#define RLE_PRED_3
#define QUIC_RGB
#define QUIC_MAGIC (*(uint32_t *)"QUIC")
/* ASCII "QUIC" */
#define QUIC_MAGIC 0x43495551
#define QUIC_VERSION_MAJOR 0U
#define QUIC_VERSION_MINOR 1U
#define QUIC_VERSION ((QUIC_VERSION_MAJOR << 16) | (QUIC_VERSION_MAJOR & 0xffff))