gmpbench: Ultra40 Solaris10 Studio11

Torbjorn Granlund tg-this-will-bounce-but-I-am-subscribed-to-the-list-honest at swox.com
Tue Apr 10 16:38:41 CEST 2007


nisse at lysator.liu.se (Niels Möller) writes:

  If longlong.h is used only internally by GMP, then it should be no
  problem to guard the inline assembly with a configure supplied
  
    #if WITH_INLINE_ASSEMBLER
  
  rather than the compiler supplied
  
    #if defined (__GNUC__)
  
Yes, assuming 100% compatibility between the GCC-defined inline
assembly and the non-free compiler's version.  But that is hardly the
case.

  What is the LONGLONG_STANDALONE define used for?

It allows GMP's version of longlong.h to be used with the same
interface as initially defined for longlong.h in GCC, not requiring
the support of separate (assembly) files.  GMP's longlong.h otherwise
requires some files from mpn/<machine> when compiled with certain
(typically non-free) compilers.

-- 
Torbjörn


More information about the gmp-devel mailing list