summaryrefslogtreecommitdiff
path: root/src/win95/mmx_math.h
diff options
context:
space:
mode:
authorSteven Fuller <relnev@icculus.org>2001-07-04 22:58:50 +0000
committerPatryk Obara <dreamer.tan@gmail.com>2019-08-20 02:22:36 +0200
commitd89eb0014e72da9fe561a5a150943d6b962c3dd9 (patch)
tree889ed9c442ea51d5ac8ee3adeaae0d1ebea7ca4d /src/win95/mmx_math.h
parent190a6b306be7da0761bda6a5882349e161230d30 (diff)
First wave of changes:
Removed inclusion of Windows header files and remove some Windows-specific declarations.
Diffstat (limited to 'src/win95/mmx_math.h')
-rw-r--r--src/win95/mmx_math.h24
1 files changed, 10 insertions, 14 deletions
diff --git a/src/win95/mmx_math.h b/src/win95/mmx_math.h
index 594ac0e..9382c0e 100644
--- a/src/win95/mmx_math.h
+++ b/src/win95/mmx_math.h
@@ -70,18 +70,6 @@ To ensure this in arrays of vectors/matrices, the structure
should contain a dummy padding 32-bit value (recommended).
*/
-/* storage class specifier for assembler calls */
-
-#ifdef __WATCOMC__
-#define _asmcall
-#define _asminline
-#elif defined(_MSC_VER)
-#define _asmcall static __inline
-#define _asminline static __inline
-#else
-#error "Unknown compiler"
-#endif
-
/* forward reference declared in global scope */
struct vectorch;
struct matrixch;
@@ -202,7 +190,13 @@ _asmcall signed MMX_VectorDot16(struct vectorch const * v1, struct vectorch cons
#else
-#error "Unknown compiler"
+/* #error "Unknown compiler" */
+void MMX_VectorTransform(struct vectorch * vector, struct matrixch const * matrix);
+void MMX_VectorTransformed(struct vectorch * v_result, struct vectorch const * v_parm, struct matrixch const * matrix);
+void MMX_VectorTransformAndAdd(struct vectorch * vector, struct matrixch const * matrix, struct vectorch const * v_add);
+void MMX_VectorTransformedAndAdd(struct vectorch * v_result, struct vectorch const * v_parm, struct matrixch const * matrix, struct vectorch const * v_add);
+int MMX_VectorDot(struct vectorch const * v1, struct vectorch const * v2);
+int MMX_VectorDot16(struct vectorch const * v1, struct vectorch const * v2);
#endif
@@ -456,7 +450,9 @@ _asminline signed MMXInline_VectorDot16(struct vectorch const * v1, struct vecto
#else
-#error "Unknown compiler"
+/* #error "Unknown compiler" */
+int MMXInline_VectorDot(struct vectorch const * v1, struct vectorch const * v2);
+int MMXInline_VectorDot16(struct vectorch const * v1, struct vectorch const * v2);
#endif