Browse Source

Add support for x86_64 CPU.

master
Bruno Haible 23 years ago
parent
commit
7e82f04c80
  1. 7
      ChangeLog
  2. 3
      include/cln/config.h.in
  3. 4
      include/cln/modules.h
  4. 2
      include/cln/object.h
  5. 4
      include/cln/types.h

7
ChangeLog

@ -1,3 +1,10 @@
2002-08-03 Joerg Arndt <jj@suse.de>
* include/cln/config.h.in: Add support for x86_64 CPU.
* include/cln/modules.h: Likewise.
* include/cln/types.h: Likewise.
* include/cln/object.h: Likewise.
2002-06-08 Richard Kreckel <kreckel@ginac.de> 2002-06-08 Richard Kreckel <kreckel@ginac.de>
* src/base/digitseq/cl_asm.h: ensure intCsize==16 when including * src/base/digitseq/cl_asm.h: ensure intCsize==16 when including

3
include/cln/config.h.in

@ -54,6 +54,9 @@
#ifndef __ia64__ #ifndef __ia64__
#undef __ia64__ #undef __ia64__
#endif #endif
#ifndef __x86_64__
#undef __x86_64__
#endif
#ifndef __s390__ #ifndef __s390__
#undef __s390__ #undef __s390__
#endif #endif

4
include/cln/modules.h

@ -64,7 +64,7 @@
#endif #endif
// Globalize a label defined in the same translation unit. // Globalize a label defined in the same translation unit.
// See macro ASM_GLOBALIZE_LABEL in the gcc sources. // See macro ASM_GLOBALIZE_LABEL in the gcc sources.
#if defined(__i386__) || defined(__m68k__) || defined(__mips__) || defined(__mips64__) || defined(__alpha__) || defined(__rs6000__) || defined(__s390__)
#if defined(__i386__) || defined(__m68k__) || defined(__mips__) || defined(__mips64__) || defined(__alpha__) || defined(__rs6000__) || defined(__x86_64__) || defined(__s390__)
// Some m68k systems use "xdef" or "global" or ".global"... // Some m68k systems use "xdef" or "global" or ".global"...
#define CL_GLOBALIZE_LABEL(label) __asm__("\t.globl " label); #define CL_GLOBALIZE_LABEL(label) __asm__("\t.globl " label);
#endif #endif
@ -117,7 +117,7 @@
// except that the latter inhibits inlining of the function containing it // except that the latter inhibits inlining of the function containing it
// in gcc-2.95. For new CPUs, look for "jump" and "indirect_jump" in gcc's // in gcc-2.95. For new CPUs, look for "jump" and "indirect_jump" in gcc's
// machine description. // machine description.
#if defined(__i386__)
#if defined(__i386__) || defined(__x86_64__)
#define CL_JUMP_TO(addr) ASM_VOLATILE("jmp %*%0" : : "rm" ((void*)(addr))) #define CL_JUMP_TO(addr) ASM_VOLATILE("jmp %*%0" : : "rm" ((void*)(addr)))
#endif #endif
#if defined(__m68k__) #if defined(__m68k__)

2
include/cln/object.h

@ -25,7 +25,7 @@ namespace cln {
#if defined(__i386__) || defined(__mips__) || defined(__sparc__) || defined(__hppa__) || defined(__arm__) || defined(__rs6000__) || defined(__m88k__) || defined(__convex__) || defined(__s390__) #if defined(__i386__) || defined(__mips__) || defined(__sparc__) || defined(__hppa__) || defined(__arm__) || defined(__rs6000__) || defined(__m88k__) || defined(__convex__) || defined(__s390__)
#define cl_word_alignment 4 #define cl_word_alignment 4
#endif #endif
#if defined(__alpha__) || defined(__mips64__) || defined(__sparc64__) || defined(__ia64__)
#if defined(__alpha__) || defined(__mips64__) || defined(__sparc64__) || defined(__ia64__) || defined(__x86_64__)
#define cl_word_alignment 8 #define cl_word_alignment 8
#endif #endif
#if !defined(cl_word_alignment) #if !defined(cl_word_alignment)

4
include/cln/types.h

@ -48,7 +48,7 @@
#undef HAVE_LONGLONG #undef HAVE_LONGLONG
#endif #endif
#endif #endif
#if defined(HAVE_LONGLONG) && (defined(__alpha__) || defined(__mips64__) || defined(__sparc64__) || defined(__ia64__))
#if defined(HAVE_LONGLONG) && (defined(__alpha__) || defined(__mips64__) || defined(__sparc64__) || defined(__ia64__) || defined(__x86_64__))
// 64 bit registers in hardware // 64 bit registers in hardware
#define HAVE_FAST_LONGLONG #define HAVE_FAST_LONGLONG
#endif #endif
@ -85,7 +85,7 @@
#define signean_minus -1 #define signean_minus -1
// Integer type used for counters. // Integer type used for counters.
#if (defined(HAVE_FAST_LONGLONG) && (defined(__alpha__) || defined(__ia64__)))
#if (defined(HAVE_FAST_LONGLONG) && (defined(__alpha__) || defined(__ia64__) || defined(__x86_64__)))
#define intCsize long_bitsize #define intCsize long_bitsize
typedef long sintC; typedef long sintC;
typedef unsigned long uintC; typedef unsigned long uintC;

Loading…
Cancel
Save