42 lines
1.9 KiB
Diff
42 lines
1.9 KiB
Diff
--- singular-4.1.0/m4/cpu-check.m4.orig 2016-10-14 14:00:05.000000000 -0600
|
|
+++ singular-4.1.0/m4/cpu-check.m4 2017-01-16 17:59:49.348670992 -0700
|
|
@@ -37,6 +37,18 @@ if test "$ac_cv_singcpuname" = ppc; then
|
|
AC_DEFINE(SI_CPU_PPC,1,"PPC")
|
|
AC_SUBST(SI_CPU_PPC)
|
|
fi
|
|
+if test "$ac_cv_singcpuname" = arm -o "$ac_cv_singcpuname" = armel; then
|
|
+ AC_DEFINE(SI_CPU_ARM,1,"ARM")
|
|
+ AC_SUBST(SI_CPU_ARM)
|
|
+fi
|
|
+if test "$ac_cv_singcpuname" = aarch64; then
|
|
+ AC_DEFINE(SI_CPU_AARCH64,1,"AARCH64")
|
|
+ AC_SUBST(SI_CPU_AARCH64)
|
|
+fi
|
|
+if test "$ac_cv_singcpuname" = s390; then
|
|
+ AC_DEFINE(SI_CPU_S390,1,"S390")
|
|
+ AC_SUBST(SI_CPU_S390)
|
|
+fi
|
|
|
|
# UNAME and PATH
|
|
AC_MSG_CHECKING(uname for Singular)
|
|
@@ -61,6 +73,19 @@ dnl the following settings seems to be b
|
|
dnl the following settings seems to be better on ppc processors
|
|
dnl testet on: ppc_Linux, 740/750 PowerMac G3, 512k L2 cache
|
|
[powerpc*|ppc*], [AC_DEFINE(HAVE_MULT_MOD,1,multiplication is fast on the cpu: a*b is with mod otherwise using tables of logartihms)],
|
|
+dnl FIXME: need to run some tests
|
|
+ [arm*], [
|
|
+ AC_DEFINE(HAVE_MULT_MOD,1,multiplication is fast on the cpu: a*b is with mod otherwise using tables of logartihms)
|
|
+ AC_DEFINE(HAVE_DIV_MOD,1,division using extend euclidian algorithm otherwise using tables of logartihms)
|
|
+ ],
|
|
+dnl FIXME: need to run some tests
|
|
+ [aarch64*], [
|
|
+ AC_DEFINE(HAVE_MULT_MOD,1,multiplication is fast on the cpu: a*b is with mod otherwise using tables of logartihms)
|
|
+ AC_DEFINE(HAVE_GENERIC_ADD,1,use branch for addition in Z/p otherwise it uses a generic add)
|
|
+ AC_DEFINE(HAVE_DIV_MOD,1,division using extend euclidian algorithm otherwise using tables of logartihms)
|
|
+ ],
|
|
+dnl FIXME: need to run some tests
|
|
+ [s390*], [AC_DEFINE(HAVE_GENERIC_ADD,1,use branch for addition in Z/p otherwise it uses a generic add)],
|
|
[]
|
|
)
|
|
|