diff options
| author | Steven Fuller <relnev@icculus.org> | 2001-07-04 22:58:50 +0000 |
|---|---|---|
| committer | Patryk Obara <dreamer.tan@gmail.com> | 2019-08-20 02:22:36 +0200 |
| commit | d89eb0014e72da9fe561a5a150943d6b962c3dd9 (patch) | |
| tree | 889ed9c442ea51d5ac8ee3adeaae0d1ebea7ca4d /src/win95/inline.h | |
| parent | 190a6b306be7da0761bda6a5882349e161230d30 (diff) | |
First wave of changes:
Removed inclusion of Windows header files and remove some Windows-specific
declarations.
Diffstat (limited to 'src/win95/inline.h')
| -rw-r--r-- | src/win95/inline.h | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/src/win95/inline.h b/src/win95/inline.h index fdc5c60..30b7faa 100644 --- a/src/win95/inline.h +++ b/src/win95/inline.h @@ -1,4 +1,5 @@ #ifndef INLINE_INCLUDED +#define INLINE_INCLUDED #if SUPPORT_MMX #include "mmx_math.h" @@ -1207,7 +1208,27 @@ a = itmp;} #else /* other compiler ? */ -#error "Unknown compiler" +/* #error "Unknown compiler" */ +void ADD_LL(LONGLONGCH *a, LONGLONGCH *b, LONGLONGCH *c); +void ADD_LL_PP(LONGLONGCH *c, LONGLONGCH *a); +void SUB_LL(LONGLONGCH *a, LONGLONGCH *b, LONGLONGCH *c); +void SUB_LL_MM(LONGLONGCH *c, LONGLONGCH *a); +void MUL_I_WIDE(int a, int b, LONGLONGCH *c); +int CMP_LL(LONGLONGCH *a, LONGLONGCH *b); +void EQUALS_LL(LONGLONGCH *a, LONGLONGCH *b); +void NEG_LL(LONGLONGCH *a); +void ASR_LL(LONGLONGCH *a, int shift); +void IntToLL(LONGLONGCH *a, int *b); +int MUL_FIXED(int a, int b); +int DIV_FIXED(int a, int b); + +#define DIV_INT(a, b) ((a) / (b)) + +int NarrowDivide(LONGLONGCH *a, int b); +int WideMulNarrowDiv(int a, int b, int c); +void RotateVector_ASM(VECTORCH *v, MATRIXCH *m); +void RotateAndCopyVector_ASM(VECTORCH *v1, VECTORCH *v2, MATRIXCH *m); +int f2i(float f); #endif @@ -1241,6 +1262,5 @@ void CopyClipPoint(CLIP_POINT *cp1, CLIP_POINT *cp2); } #endif -#define INLINE_INCLUDED -#endif +#endif |
