aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/beam_emu.c
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2016-02-17 16:27:05 +0100
committerBjörn Gustavsson <[email protected]>2016-02-17 16:27:05 +0100
commitf291c30a891677a0f4710ab02a2a9d03d1232412 (patch)
tree6c19771ebe4a7026de819c3156a2897cb4cb5b43 /erts/emulator/beam/beam_emu.c
parent8dbd8cb1fd7fe2fbe9f29fd5acf314f4cfe70895 (diff)
parent345651148351c57b26347ee9a9b50e6e2732e79a (diff)
downloadotp-f291c30a891677a0f4710ab02a2a9d03d1232412.tar.gz
otp-f291c30a891677a0f4710ab02a2a9d03d1232412.tar.bz2
otp-f291c30a891677a0f4710ab02a2a9d03d1232412.zip
Merge branch 'jv/erts/optimize-cmp'
* jv/erts/optimize-cmp: Unify comparison macros in erl_utils.h Avoid erts_cmp jump in atom, int and float comparisons
Diffstat (limited to 'erts/emulator/beam/beam_emu.c')
-rw-r--r--erts/emulator/beam/beam_emu.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/erts/emulator/beam/beam_emu.c b/erts/emulator/beam/beam_emu.c
index d4fb36acc3..10f132abfc 100644
--- a/erts/emulator/beam/beam_emu.c
+++ b/erts/emulator/beam/beam_emu.c
@@ -721,10 +721,10 @@ void** beam_ops;
#define NotEqualImmed(X, Y, Action) if (X == Y) { Action; }
#define EqualExact(X, Y, Action) if (!EQ(X,Y)) { Action; }
#define NotEqualExact(X, Y, Action) if (EQ(X,Y)) { Action; }
-#define Equal(X, Y, Action) if (!CMP_EQ(X,Y)) { Action; }
-#define NotEqual(X, Y, Action) if (!CMP_NE(X,Y)) { Action; }
-#define IsLessThan(X, Y, Action) if (CMP_GE(X, Y)) { Action; }
-#define IsGreaterEqual(X, Y, Action) if (CMP_LT(X, Y)) { Action; }
+#define Equal(X, Y, Action) CMP_EQ_ACTION(X,Y,Action)
+#define NotEqual(X, Y, Action) CMP_NE_ACTION(X,Y,Action)
+#define IsLessThan(X, Y, Action) CMP_LT_ACTION(X,Y,Action)
+#define IsGreaterEqual(X, Y, Action) CMP_GE_ACTION(X,Y,Action)
#define IsFloat(Src, Fail) if (is_not_float(Src)) { Fail; }