summaryrefslogtreecommitdiff
path: root/src/win95
diff options
context:
space:
mode:
authorSteven Fuller <relnev@icculus.org>2001-07-05 18:05:07 +0000
committerPatryk Obara <dreamer.tan@gmail.com>2019-08-20 02:22:36 +0200
commit1fcf3c028ae1eb5072e70fa0a8a856dfbfae595b (patch)
treefa8525b82613bee8b819ce12b7e37dc044ec248c /src/win95
parent49c2203275d1e8480f8778c8d8ce2a7947278b67 (diff)
afont.c now builds
Diffstat (limited to 'src/win95')
-rw-r--r--src/win95/aw.h2
-rw-r--r--src/win95/mmx_math.h29
-rw-r--r--src/win95/platform.h3
3 files changed, 6 insertions, 28 deletions
diff --git a/src/win95/aw.h b/src/win95/aw.h
index 1b4fa3b..73c9b42 100644
--- a/src/win95/aw.h
+++ b/src/win95/aw.h
@@ -4,4 +4,4 @@
struct AwBackupTexture;
typedef struct AwBackupTexture * AW_BACKUPTEXTUREHANDLE;
-#endif /* _INCLUDED_AW_H_ */ \ No newline at end of file
+#endif /* _INCLUDED_AW_H_ */
diff --git a/src/win95/mmx_math.h b/src/win95/mmx_math.h
index 9382c0e..fecc15c 100644
--- a/src/win95/mmx_math.h
+++ b/src/win95/mmx_math.h
@@ -74,31 +74,6 @@ should contain a dummy padding 32-bit value (recommended).
struct vectorch;
struct matrixch;
-/***********************/
-/* F-U-N-C-T-I-O-N */
-/* P-R-O-T-O-T-Y-P-E-S */
-/* F-O-R A-L-L */
-/* P-U-B-L-I-C */
-/* F-U-N-C-T-I-O-N-S */
-/***********************/
-
-/* overwrites the input vector with the new vector */
-_asmcall void MMX_VectorTransform(struct vectorch * vector, struct matrixch const * matrix);
-/* fills a new vector with the result of the input vector transformed by the matrix */
-_asmcall void MMX_VectorTransformed(struct vectorch * v_result, struct vectorch const * v_parm, struct matrixch const * matrix);
-/* overwrites the input vector with the new vector, then adds another vector */
-_asmcall void MMX_VectorTransformAndAdd(struct vectorch * vector, struct matrixch const * matrix, struct vectorch const * v_add);
-/* fills a new vector with the result of the input vector transformed by the matrix then added to another vector */
-_asmcall void MMX_VectorTransformedAndAdd(struct vectorch * v_result, struct vectorch const * v_parm, struct matrixch const * matrix, struct vectorch const * v_add);
-/* compute dot product */
-_asmcall signed MMX_VectorDot(struct vectorch const * v1, struct vectorch const * v2);
-/* this one assumes all the input vector elements are in the range [-32768,32767] */
-_asmcall signed MMX_VectorDot16(struct vectorch const * v1, struct vectorch const * v2);
-
-/* inline versions */
-_asminline signed MMXInline_VectorDot(struct vectorch const * v1, struct vectorch const * v2);
-_asminline signed MMXInline_VectorDot16(struct vectorch const * v1, struct vectorch const * v2);
-
/*****************/
/* PRIVATE PARTS */
/*****************/
@@ -209,8 +184,8 @@ extern int use_mmx_math;
/* inline functions - no call */
-extern __int64 const mmx_sign_mask;
-extern __int64 const mmx_one_fixed_h;
+extern const __int64 mmx_sign_mask;
+extern const __int64 mmx_one_fixed_h;
#ifdef __WATCOMC__
diff --git a/src/win95/platform.h b/src/win95/platform.h
index 83dcb50..6198d94 100644
--- a/src/win95/platform.h
+++ b/src/win95/platform.h
@@ -1,6 +1,8 @@
#ifndef PLATFORM_INCLUDED
#define PLATFORM_INCLUDED
+#include <stdint.h> // int64_t
+
#include "shape.h" // struct imageheader
/*
@@ -42,6 +44,7 @@ typedef struct RECT
typedef RECT RECT_AVP;
+typedef int64_t __int64;
/* Watcom C 64-bit values */