64 bit support on Windows

This commit is contained in:
Carsten Larsen 2017-01-22 00:51:35 +01:00
parent 761339c482
commit a768774fa3
3 changed files with 4 additions and 4 deletions

View File

@ -73,13 +73,13 @@
#ifdef __powerpc__
# define TXTCPU "PowerPC"
#endif
#if defined(__x86_64__)
#if defined(__x86_64__) || defined(_M_AMD64)
# define TXTCPU "amd64"
#endif
#if defined(__arm__) || defined(_M_ARM)
# define TXTCPU "ARM"
#endif
#if defined(__aarch64__)
#if defined(__aarch64__) || defined(_M_ARM64)
# define TXTCPU "arm64"
#endif
#ifndef TXTCPU

View File

@ -83,7 +83,7 @@ void* AllocMemSafe(size_t size)
list->count = 0;
}
#if defined(__x86_64__) || defined(__aarch64__)
#if defined(__x86_64__) || defined(__aarch64__) || defined(_M_AMD64) || defined(_M_ARM64)
// Align to bytes of 8
allocsize = (size + 7) & ~0x07;
#else

View File

@ -52,7 +52,7 @@
* sizeof(word) MUST BE A POWER OF TWO
* SO THAT wmask BELOW IS ALL ONES
*/
#if defined(__x86_64__) || defined(__aarch64__)
#if defined(__x86_64__) || defined(__aarch64__) || defined(_M_AMD64) || defined(_M_ARM64)
typedef uint64_t word;
#else
typedef uint32_t word;