From 90056c594d74eb1b938e34d02833435bd23e0bf7 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Wed, 17 Sep 2008 20:07:18 +0000 Subject: Remove heretic definitions for fixed math arithmetic and endianness conversion macros; use the ones from the common code. Subversion-branch: /branches/raven-branch Subversion-revision: 1242 --- src/heretic/doomdef.h | 35 +---------------------------------- 1 file changed, 1 insertion(+), 34 deletions(-) (limited to 'src/heretic/doomdef.h') diff --git a/src/heretic/doomdef.h b/src/heretic/doomdef.h index bdf78a19..654c1bd8 100644 --- a/src/heretic/doomdef.h +++ b/src/heretic/doomdef.h @@ -62,6 +62,7 @@ // events #include "d_event.h" +// gamemode/mission #include "d_mode.h" extern byte *destview, *destscreen; // PC direct to screen pointers @@ -666,40 +667,6 @@ extern boolean autostart; =============================================================================== */ - -fixed_t FixedMul(fixed_t a, fixed_t b); -fixed_t FixedDiv(fixed_t a, fixed_t b); -fixed_t FixedDiv2(fixed_t a, fixed_t b); - -#ifdef __WATCOMC__ -#pragma aux FixedMul = \ - "imul ebx", \ - "shrd eax,edx,16" \ - parm [eax] [ebx] \ - value [eax] \ - modify exact [eax edx] - -#pragma aux FixedDiv2 = \ - "cdq", \ - "shld edx,eax,16", \ - "sal eax,16", \ - "idiv ebx" \ - parm [eax] [ebx] \ - value [eax] \ - modify exact [eax edx] -#endif - -#ifdef __BIG_ENDIAN__ -short ShortSwap(short); -long LongSwap(long); -#define SHORT(x) ShortSwap(x) -#define LONG(x) LongSwap(x) -#else -#define SHORT(x) (x) -#define LONG(x) (x) -#endif - - #include "z_zone.h" //---------- -- cgit v1.2.3