projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2bae6d8
)
src: remove unused BITS_PER_LONG macro
author
Ben Noordhuis
<info@bnoordhuis.nl>
Tue, 15 Dec 2015 11:49:03 +0000
(12:49 +0100)
committer
Myles Borins
<mborins@us.ibm.com>
Wed, 2 Mar 2016 22:01:11 +0000
(14:01 -0800)
Remove the unused and broken BITS_PER_LONG macro. Broken because x64
is the only 64 bits architecture where it produces the right result.
PR-URL: https://github.com/nodejs/node/pull/4290
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
src/node_internals.h
patch
|
blob
|
history
diff --git
a/src/node_internals.h
b/src/node_internals.h
index
bfe4fce
..
5ff6b63
100644
(file)
--- a/
src/node_internals.h
+++ b/
src/node_internals.h
@@
-109,12
+109,6
@@
inline static int snprintf(char *buffer, size_t n, const char *format, ...) {
#endif
#endif
-#if defined(__x86_64__)
-# define BITS_PER_LONG 64
-#else
-# define BITS_PER_LONG 32
-#endif
-
#ifndef ARRAY_SIZE
# define ARRAY_SIZE(a) (sizeof((a)) / sizeof((a)[0]))
#endif