mirror of https://gitlab.com/rnger/amath
64 bit support on Windows
This commit is contained in:
parent
761339c482
commit
a768774fa3
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue