mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
build: add x32 support
This commit adds preliminary x32 support. Configure with:
$ ./configure --dest-cpu=x32
PR-URL: https://github.com/node-forward/node/pull/24
Reviewed-By: Fedor Indutny <fedor@indutny.com>
This commit is contained in:
1 parent
7af8870af9
commit
a08f8e28ca
4 files changed
+15
-22
No files matched your search
+2
-4
@@ -526,8 +526,7 @@ static bool contains_non_ascii(const char* src, size_t len) {
|
||||
}
|
||||
|
||||
|
||||
#if defined(__x86_64__) || defined(_WIN64) || defined(__PPC64__) || \
|
||||
defined(_ARCH_PPC64)
|
||||
#if defined(_WIN64) || defined(_LP64)
|
||||
const uintptr_t mask = 0x8080808080808080ll;
|
||||
#else
|
||||
const uintptr_t mask = 0x80808080l;
|
||||
@@ -582,8 +581,7 @@ static void force_ascii(const char* src, char* dst, size_t len) {
|
||||
}
|
||||
}
|
||||
|
||||
#if defined(__x86_64__) || defined(_WIN64) || defined(__PPC64__) || \
|
||||
defined(_ARCH_PPC64)
|
||||
#if defined(_WIN64) || defined(_LP64)
|
||||
const uintptr_t mask = ~0x8080808080808080ll;
|
||||
#else
|
||||
const uintptr_t mask = ~0x80808080l;
|
||||
|
||||
Reference in new issue
Block a user