Trying to suss out the FPE in ref_softx.so

- Commented out USE_ASM in the .S files -- in theory they're
  only built when USE_ASM is enabled anyway...
- vid_so.c had some bad typecasts hidden away in some dead
  code that became activated during this FPE crusade, and
  though it's still dead, I thought I'd leave it as it is
  now.
This commit is contained in:
Jamie Wilkinson 2002-05-15 13:00:42 +00:00
parent 6782939dfb
commit 678ec75aa1
13 changed files with 29 additions and 25 deletions

View file

@ -27,7 +27,7 @@
#include "qasm.h" #include "qasm.h"
#include "d_ifacea.h" #include "d_ifacea.h"
#if USE_ASM /* #if USE_ASM */
// !!! if this is changed, it must be changed in d_polyse.c too !!! // !!! if this is changed, it must be changed in d_polyse.c too !!!
#define DPS_MAXSPANS MAXHEIGHT+1 #define DPS_MAXSPANS MAXHEIGHT+1
@ -1267,5 +1267,5 @@ LSkip2:
popl %ebp popl %ebp
ret ret
#endif /* USE_ASM */ /* #endif */ /* USE_ASM */

View file

@ -11,7 +11,7 @@
#include "qasm.h" #include "qasm.h"
#if USE_ASM // #if USE_ASM
.data .data
@ -405,4 +405,4 @@ Lerror:
#endif #endif
#endif /* USE_ASM */ // #endif /* USE_ASM */

View file

@ -10,7 +10,7 @@
#include "qasm.h" #include "qasm.h"
#include "d_ifacea.h" #include "d_ifacea.h"
#ifdef USE_ASM // #ifdef USE_ASM
.data .data
Ltemp0: .long 0 Ltemp0: .long 0
@ -195,5 +195,5 @@ C(R_Alias_clip_left):
jmp LRightLeftEntry jmp LRightLeftEntry
#endif /* USE_ASM */ // #endif /* USE_ASM */

View file

@ -11,7 +11,7 @@
#include "qasm.h" #include "qasm.h"
#include "d_ifacea.h" #include "d_ifacea.h"
#ifdef USE_ASM // #ifdef USE_ASM
//---------------------------------------------------------------------- //----------------------------------------------------------------------
// 8-bpp horizontal span drawing code for polygons, with no transparency and // 8-bpp horizontal span drawing code for polygons, with no transparency and
@ -1227,5 +1227,5 @@ LFDone:
popl %ebp // restore the caller's stack frame popl %ebp // restore the caller's stack frame
ret ret
#endif /* USE_ASM */ // #endif /* USE_ASM */

View file

@ -10,7 +10,7 @@
#include "qasm.h" #include "qasm.h"
#include "d_ifacea.h" #include "d_ifacea.h"
#ifdef USE_ASM /* #ifdef USE_ASM */
// !!! if these are changed, they must be changed in r_draw.c too !!! // !!! if these are changed, they must be changed in r_draw.c too !!!
#define FULLY_CLIPPED_CACHED 0x80000000 #define FULLY_CLIPPED_CACHED 0x80000000
@ -817,5 +817,5 @@ LClampP2:
LClampP3: LClampP3:
ret ret
#endif /* USE_ASM */ /* #endif */ /* USE_ASM */

View file

@ -10,7 +10,7 @@
#include "qasm.h" #include "qasm.h"
#ifdef USE_ASM // #ifdef USE_ASM
.data .data
Ltemp: .long 0 Ltemp: .long 0
@ -730,5 +730,5 @@ C(R_SurfacePatch):
ret ret
#endif /* USE_ASM */ // #endif /* USE_ASM */

View file

@ -1,4 +1,6 @@
/* $Id$ /* $Id$
*
* main for vid refreshers
* *
* Copyright (C) 1997-2001 Id Software, Inc. * Copyright (C) 1997-2001 Id Software, Inc.
* Copyright (c) 2002 The Quakeforge Project. * Copyright (c) 2002 The Quakeforge Project.
@ -19,7 +21,9 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
// r_main.c #ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "r_local.h" #include "r_local.h"

View file

@ -10,7 +10,7 @@
#include "qasm.h" #include "qasm.h"
#include "d_ifacea.h" #include "d_ifacea.h"
#ifdef USE_ASM // #ifdef USE_ASM
.data .data
@ -68,5 +68,5 @@ Llp:
popl %ebp // restore caller's stack frame pointer popl %ebp // restore caller's stack frame pointer
ret ret
#endif /* USE_ASM */ // #endif /* USE_ASM */

View file

@ -9,7 +9,7 @@
#include "qasm.h" #include "qasm.h"
#ifdef USE_ASM // #ifdef // USE_ASM
//---------------------------------------------------------------------- //----------------------------------------------------------------------
// 8-bpp horizontal span drawing code for polygons, with transparency. // 8-bpp horizontal span drawing code for polygons, with transparency.
@ -880,4 +880,4 @@ LNextSpan:
popl %ebp // restore the caller's stack frame popl %ebp // restore the caller's stack frame
ret ret
#endif /* USE_ASM */ // #endif /* USE_ASM */

View file

@ -9,7 +9,7 @@
#include "qasm.h" #include "qasm.h"
#ifdef USE_ASM // #ifdef USE_ASM
.data .data
@ -763,4 +763,4 @@ LPatchLoop8:
ret ret
#endif /* USE_ASM */ // #endif /* USE_ASM */

View file

@ -8,7 +8,7 @@
#include "qasm.h" #include "qasm.h"
#include "d_ifacea.h" #include "d_ifacea.h"
#ifdef USE_ASM // #ifdef USE_ASM
.data .data
@ -221,4 +221,4 @@ entryvec_table: .long 0, Entry2_8, Entry3_8, Entry4_8
spr8entryvec_table: .long 0, Spr8Entry2_8, Spr8Entry3_8, Spr8Entry4_8 spr8entryvec_table: .long 0, Spr8Entry2_8, Spr8Entry3_8, Spr8Entry4_8
.long Spr8Entry5_8, Spr8Entry6_8, Spr8Entry7_8, Spr8Entry8_8 .long Spr8Entry5_8, Spr8Entry6_8, Spr8Entry7_8, Spr8Entry8_8
#endif /* USE_ASM */ // #endif /* USE_ASM */

View file

@ -9,7 +9,7 @@
#include "qasm.h" #include "qasm.h"
#if USE_ASM // #if USE_ASM
.text .text
@ -193,5 +193,5 @@ LClampDone2:
ret ret
#endif /* USE_ASM */ //#endif /* USE_ASM */

View file

@ -370,7 +370,7 @@ qboolean VID_LoadRefresh( char *name )
RW_IN_Init_fp = RW_IN_Init; RW_IN_Init_fp = RW_IN_Init;
RW_IN_Shutdown_fp = RW_IN_Shutdown; RW_IN_Shutdown_fp = RW_IN_Shutdown;
RW_IN_Activate_fp = RW_IN_Activate; RW_IN_Activate_fp = (void(*)(qboolean))RW_IN_Activate;
RW_IN_Commands_fp = RW_IN_Commands; RW_IN_Commands_fp = RW_IN_Commands;
RW_IN_Move_fp = RW_IN_Move; RW_IN_Move_fp = RW_IN_Move;
RW_IN_Frame_fp = RW_IN_Frame; RW_IN_Frame_fp = RW_IN_Frame;
@ -403,7 +403,7 @@ qboolean VID_LoadRefresh( char *name )
void KBD_Update(void); void KBD_Update(void);
void KBD_Close(void); void KBD_Close(void);
KBD_Init_fp = KBD_Init; KBD_Init_fp = (void(*)(Key_Event_fp_t))KBD_Init;
KBD_Update_fp = KBD_Update; KBD_Update_fp = KBD_Update;
KBD_Close_fp = KBD_Close; KBD_Close_fp = KBD_Close;
} }