From d5231d435124be56799daf8726e6712346e2b54b Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Thu, 19 Jun 2003 15:36:08 +0000 Subject: [PATCH] Fix for Big Endian writing of variables Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1076 --- include/mem.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/mem.h b/include/mem.h index b459ef32..9723e830 100644 --- a/include/mem.h +++ b/include/mem.h @@ -88,9 +88,9 @@ INLINE void writed(HostPt off,Bit32u val) { off[3]=(Bit8u)(val >> 24); }; -#define MLEB(_MLE_VAL_) (_MLE_VAL_) -#define MLEW(_MLE_VAL_) (_MLE_VAL_ >> 8) | (_MLE_VAL_ << 8)) -#define MLED(_MLE_VAL_) (_MLE_VAL_ >> 24)|((_MLE_VAL_ >> 8)&0xFF00)|((_MLE_VAL_ << 8)&0xFF0000)|((_MLE_VAL_ << 24)&0xFF000000)) +#define MLEB(_MLE_VAL_) (_MLE_VAL_) +#define MLEW(_MLE_VAL_) ( (_MLE_VAL_ >> 8) | (_MLE_VAL_ << 8)) +#define MLED(_MLE_VAL_) ( (_MLE_VAL_ >> 24)|((_MLE_VAL_ >> 8)&0xFF00)|((_MLE_VAL_ << 8)&0xFF0000)|((_MLE_VAL_ << 24)&0xFF000000)) #else