replace _fastcall

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1181 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
TimeServ 2005-08-01 03:22:36 +00:00
parent 6d6197eaba
commit 14f9beab23
2 changed files with 10 additions and 4 deletions

View file

@ -125,11 +125,17 @@ extern void (*d_drawspans) (espan_t *pspan);
#define TRANS_UPPER_CAP (TRANS_MAX / (TRANS_LEVELS + 0.0)) #define TRANS_UPPER_CAP (TRANS_MAX / (TRANS_LEVELS + 0.0))
#define TRANS_LOWER_CAP (1.0 / TRANS_LEVELS) #define TRANS_LOWER_CAP (1.0 / TRANS_LEVELS)
#ifdef _fastcall
#define FASTCALL _fastcall
#else
#define FASTCALL
#endif
void D_InitTrans(void); void D_InitTrans(void);
// void Set_TransLevelI(int level); // void Set_TransLevelI(int level);
void D_SetTransLevel(float level, blendmode_t blend); void D_SetTransLevel(float level, blendmode_t blend);
extern qbyte _fastcall Trans(qbyte p, qbyte p2); extern qbyte FASTCALL Trans(qbyte p, qbyte p2);
extern qbyte _fastcall AddBlend(qbyte p, qbyte p2); extern qbyte FASTCALL AddBlend(qbyte p, qbyte p2);
extern qbyte *pal555to8; extern qbyte *pal555to8;
#endif #endif

View file

@ -31,7 +31,7 @@ void D_InitTrans(void)
#define Trans(p, p2) (t_curlookupp[p][p2]) #define Trans(p, p2) (t_curlookupp[p][p2])
#else #else
// TODO: INLINE THESE FUNCTIONS // TODO: INLINE THESE FUNCTIONS
qbyte _fastcall Trans(qbyte p, qbyte p2) qbyte FASTCALL Trans(qbyte p, qbyte p2)
{ {
int x; int x;
@ -41,7 +41,7 @@ qbyte _fastcall Trans(qbyte p, qbyte p2)
} }
#endif #endif
qbyte _fastcall AddBlend(qbyte p, qbyte p2) qbyte FASTCALL AddBlend(qbyte p, qbyte p2)
{ {
int x, y; int x, y;