aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_arith.c
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2015-07-01 15:09:58 +0200
committerBjörn-Egil Dahlberg <[email protected]>2015-07-01 15:09:58 +0200
commit3bda47f2f26dd417fbd65d5f46b2ab8411a2a41f (patch)
tree1c7e2e71c2c7172f5b41d15624fcaf2f19ef1d20 /erts/emulator/beam/erl_arith.c
parentdb2e9773f95a79b40e197031c7b8782392fa9d02 (diff)
downloadotp-3bda47f2f26dd417fbd65d5f46b2ab8411a2a41f.tar.gz
otp-3bda47f2f26dd417fbd65d5f46b2ab8411a2a41f.tar.bz2
otp-3bda47f2f26dd417fbd65d5f46b2ab8411a2a41f.zip
erts: Remove halfword !HEAP_ON_C_STACK
Diffstat (limited to 'erts/emulator/beam/erl_arith.c')
-rw-r--r--erts/emulator/beam/erl_arith.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/erts/emulator/beam/erl_arith.c b/erts/emulator/beam/erl_arith.c
index b8c5ef9b09..3671025d22 100644
--- a/erts/emulator/beam/erl_arith.c
+++ b/erts/emulator/beam/erl_arith.c
@@ -42,15 +42,8 @@
# define MAX(x, y) (((x) > (y)) ? (x) : (y))
#endif
-#if !HEAP_ON_C_STACK
-# define DECLARE_TMP(VariableName,N,P) \
- Eterm *VariableName = ((ERTS_PROC_GET_SCHDATA(P)->erl_arith_tmp_heap) + (2 * N))
-#else
-# define DECLARE_TMP(VariableName,N,P) \
- Eterm VariableName[2]
-#endif
-# define ARG_IS_NOT_TMP(Arg,Tmp) ((Arg) != make_big((Tmp)))
-
+#define DECLARE_TMP(VariableName,N,P) Eterm VariableName[2]
+#define ARG_IS_NOT_TMP(Arg,Tmp) ((Arg) != make_big((Tmp)))
static Eterm shift(Process* p, Eterm arg1, Eterm arg2, int right);