aboutsummaryrefslogtreecommitdiffstats
path: root/mps/code/mpstd.h
diff options
context:
space:
mode:
authorDavid Lovemore2012-06-28 15:39:07 +0100
committerDavid Lovemore2012-06-28 15:39:07 +0100
commita553fb00533d2ac3b932d7a94b8178d56cf678e9 (patch)
tree595f34eeae0c2a9ee11dc43135512dab17ae0808 /mps/code/mpstd.h
parent8f87261a136c91d4cd00d5ccc08b86ac864037ec (diff)
parent1e6a42e2cf06fae86773dc12ffa2e249b85d1a17 (diff)
downloademacs-a553fb00533d2ac3b932d7a94b8178d56cf678e9.tar.gz
emacs-a553fb00533d2ac3b932d7a94b8178d56cf678e9.zip
Merged from branch/2012-03-26/build-w3i6/... to bring over all the work to get windows 64-bit build running.
Copied from Perforce Change: 178525 ServerID: perforce.ravenbrook.com
Diffstat (limited to 'mps/code/mpstd.h')
-rw-r--r--mps/code/mpstd.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/mps/code/mpstd.h b/mps/code/mpstd.h
index fd637864286..b71da925752 100644
--- a/mps/code/mpstd.h
+++ b/mps/code/mpstd.h
@@ -154,6 +154,33 @@
154#define MPS_WORD_SHIFT 5 154#define MPS_WORD_SHIFT 5
155#define MPS_PF_ALIGN 8 155#define MPS_PF_ALIGN 8
156 156
157
158/* "Predefined Macros" from "Visual Studio 2010" on MSDN
159 * <http://msdn.microsoft.com/en-us/library/b0084kay(v=vs.100).aspx>.
160 * Note that Win32 includes 64-bit Windows!
161 * We use the same alignment as MS malloc: 16, which is used for XMM
162 * operations.
163 * See MSDN -> x64 Software Conventions -> Overview of x64 Calling Conventions
164 * <http://msdn.microsoft.com/en-us/library/ms235286>
165 */
166
167#elif defined(_MSC_VER) && defined(_WIN32) && defined(_WIN64) && defined(_M_X64)
168#if defined(CONFIG_PF_STRING) && ! defined(CONFIG_PF_W3I6MV)
169#error "specified CONFIG_PF_... inconsistent with detected w3i6mv"
170#endif
171#define MPS_PF_W3I6MV
172#define MPS_PF_STRING "w3i6mv"
173#define MPS_OS_W3
174#define MPS_ARCH_I6
175#define MPS_BUILD_MV
176#define MPS_T_WORD unsigned __int64
177#define MPS_T_LONGEST __int64
178#define MPS_T_ULONGEST unsigned __int64
179#define MPS_WORD_WIDTH 64
180#define MPS_WORD_SHIFT 6
181#define MPS_PF_ALIGN 16
182
183
157/* MW C/C++/ASM Lang Ref (CW9), pp. 184-186. Metrowerks does not document 184/* MW C/C++/ASM Lang Ref (CW9), pp. 184-186. Metrowerks does not document
158 * a way to determine the OS -- we assume MacOS 7. 185 * a way to determine the OS -- we assume MacOS 7.
159 */ 186 */