diff options
author | Cameron Cawley | 2019-11-08 20:24:57 +0000 |
---|---|---|
committer | Filippos Karapetis | 2019-11-09 01:08:14 +0200 |
commit | b2452d6ffde98777353b2e2d9fcfd2de66d5a28b (patch) | |
tree | ef3d6ad8440c1817f0e9d56d33dd9aefac4479d2 /engines/cryo/cryolib.h | |
parent | 8ac0012fdde8fe0c380ecbff649bc32cff7a2a28 (diff) | |
download | scummvm-rg350-b2452d6ffde98777353b2e2d9fcfd2de66d5a28b.tar.gz scummvm-rg350-b2452d6ffde98777353b2e2d9fcfd2de66d5a28b.tar.bz2 scummvm-rg350-b2452d6ffde98777353b2e2d9fcfd2de66d5a28b.zip |
CRYO: Use byteswap functions from common/endian.h
Diffstat (limited to 'engines/cryo/cryolib.h')
-rw-r--r-- | engines/cryo/cryolib.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/engines/cryo/cryolib.h b/engines/cryo/cryolib.h index 83fdfee236..4a7ca01fcc 100644 --- a/engines/cryo/cryolib.h +++ b/engines/cryo/cryolib.h @@ -32,22 +32,6 @@ namespace Cryo { class CryoEngine; -#define SW16(n) ( (((n) & 0xFF) << 8) | (((n) >> 8) & 0xFF) ) -#define SW32(n) ( (((n) & 0xFF) << 24) | (((n) >> 24) & 0xFF) | (((n) & 0xFF00) << 8) | (((n) >> 8) & 0xFF00)) -#ifdef SCUMM_BIG_ENDIAN -//big-endian host -#define LE16(n) SW16(n) -#define LE32(n) SW32(n) -#define BE16(n) (n) -#define BE32(n) (n) -#else -//little-endian host -#define LE16(n) (n) -#define LE32(n) (n) -#define BE16(n) SW16(n) -#define BE32(n) SW32(n) -#endif - enum { fsFromStart = 1 }; |