mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-common
synced 2026-01-03 15:58:39 +00:00
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:
parent
5a7e5876e6
commit
6183bbde24
@ -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))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user