aboutsummaryrefslogtreecommitdiff
path: root/math/asir2000/files
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2005-08-05 15:13:50 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2005-08-05 15:13:50 +0000
commitfba2f3a4ceff140ef83dfc444e9b18db38adf6d2 (patch)
treeb280c243c179260d391cf1e25dc3e507918a1b5c /math/asir2000/files
parent39eac4f5138099f816a433a43bd181fcf0ffd91e (diff)
Notes
Diffstat (limited to 'math/asir2000/files')
-rw-r--r--math/asir2000/files/patch-engine_Z.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/math/asir2000/files/patch-engine_Z.c b/math/asir2000/files/patch-engine_Z.c
new file mode 100644
index 000000000000..4e432ae1a541
--- /dev/null
+++ b/math/asir2000/files/patch-engine_Z.c
@@ -0,0 +1,30 @@
+
+$FreeBSD$
+
+--- engine/Z.c.orig
++++ engine/Z.c
+@@ -2,19 +2,11 @@
+ #include "base.h"
+ #include "inline.h"
+
+-#if defined(__GNUC__)
+-#define INLINE inline
+-#elif defined(VISUAL)
+-#define INLINE __inline
+-#else
+-#define INLINE
+-#endif
+-
+-INLINE void _addz(Z n1,Z n2,Z nr);
+-INLINE void _subz(Z n1,Z n2,Z nr);
+-INLINE void _mulz(Z n1,Z n2,Z nr);
+-INLINE int _addz_main(unsigned int *m1,int d1,unsigned int *m2,int d2,unsigned int *mr);
+-INLINE int _subz_main(unsigned int *m1,int d1,unsigned int *m2,int d2,unsigned int *mr);
++void _addz(Z n1,Z n2,Z nr);
++void _subz(Z n1,Z n2,Z nr);
++void _mulz(Z n1,Z n2,Z nr);
++int _addz_main(unsigned int *m1,int d1,unsigned int *m2,int d2,unsigned int *mr);
++int _subz_main(unsigned int *m1,int d1,unsigned int *m2,int d2,unsigned int *mr);
+
+ /* immediate int -> Z */
+ #define UTOZ(c,n) (n)=(!((unsigned int)(c))?0:(((unsigned int)(c))<=IMM_MAX?((Z)((((unsigned int)(c))<<1)|1)):utoz((unsigned int)(c))))