Merge from emacs-23 branch, up to 2010-05-20T21:33:58Z!juri@jurta.org.
[bpt/emacs.git] / src / m / amdx86-64.h
1 /* machine description file for AMD x86-64.
2 Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
3 Free Software Foundation, Inc.
4
5 This file is part of GNU Emacs.
6
7 GNU Emacs is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
11
12 GNU Emacs is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
19
20 #define BITS_PER_LONG 64
21 #define BITS_PER_EMACS_INT 64
22
23 /* Now define a symbol for the cpu type, if your compiler
24 does not define it automatically:
25 Ones defined so far include vax, m68000, ns16000, pyramid,
26 orion, tahoe, APOLLO and many others */
27 /* __x86_64 defined automatically. */
28
29 /* Define the type to use. */
30 #define EMACS_INT long
31 #define EMACS_UINT unsigned long
32
33 /* Data type of load average, as read out of kmem. */
34 #define LOAD_AVE_TYPE long
35
36 /* Convert that into an integer that is 100 for a load average of 1.0 */
37 #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE)
38
39 /* Define XPNTR to avoid or'ing with DATA_SEG_BITS */
40 #undef DATA_SEG_BITS
41
42 /* arch-tag: 8a5e001d-e12e-4692-a3a6-0b15ba271c6e
43 (do not change this comment) */