Changeset 41dde6 in git for m4/cpu-check.m4


Ignore:
Timestamp:
Apr 19, 2011, 3:16:16 PM (12 years ago)
Author:
Mohamed Barakat <mohamed.barakat@…>
Branches:
(u'spielwiese', '91e5db82acc17434e4062bcfa44e6efa7d41fd30')
Children:
72b8801dbb1081f0965bc77daff3ec9da62f800a
Parents:
aa450d0e542b7d92cb13033a49556c48bed0fa0b
git-author:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-04-19 15:16:16+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:31:19+01:00
Message:
- moved the definitions of HAVE_MULT_MOD, HAVE_DIV_MOD, and HAVE_GENERIC_ADD to cpu-check.m4
- generate misc/auxiliary.h in configure script
File:
1 edited

Legend:

Unmodified
Added
Removed
  • m4/cpu-check.m4

    raa450d r41dde6  
    77AC_DEFUN([SING_CHECK_CPU],
    88[
    9 # Checks for library functions.
     9AC_CANONICAL_HOST
    1010AC_MSG_CHECKING(CPU for singular)
    1111
     
    7575  ac_cv_singuname="unknown"
    7676fi
    77 AC_DEFINE_UNQUOTED(S_UNAME, "$ac_cv_singuname", Singular's own uname\, believe it or not)
     77AC_DEFINE_UNQUOTED(S_UNAME, "$ac_cv_singuname", Singular\'s own uname\, believe it or not)
     78
     79
     80AS_CASE([$host_cpu],
     81dnl the following settings seems to be better on i386 and x86_64 processors
     82  [i*86*|x86_64*], [AC_DEFINE(HAVE_MULT_MOD,1,multiplication is fast on the cpu: a*b is with mod otherwise using tables of logartihms)],
     83dnl the following settings seems to be better on itanium processors
     84dnl AC_DEFINE(HAVE_MULT_MOD,1,)
     85  [ia64*], [AC_DEFINE(HAVE_GENERIC_ADD,1,use branch for addition in Z/p otherwise it uses a generic add)],
     86dnl the following settings seems to be better on sparc processors
     87  [sparc*], [
     88            AC_DEFINE(HAVE_MULT_MOD,1,multiplication is fast on the cpu: a*b is with mod otherwise using tables of logartihms)
     89            AC_DEFINE(HAVE_DIV_MOD,1,division using extend euclidian algorithm otherwise using tables of logartihms)
     90            ],
     91dnl the following settings seems to be better on ppc processors
     92dnl testet on: ppc_Linux, 740/750 PowerMac G3, 512k L2 cache
     93  [powerpc*|ppc*], [AC_DEFINE(HAVE_MULT_MOD,1,multiplication is fast on the cpu: a*b is with mod otherwise using tables of logartihms)],
     94  []
     95)
    7896
    7997])
Note: See TracChangeset for help on using the changeset viewer.