diff options
author | Björn Gustavsson <[email protected]> | 2017-11-06 12:55:07 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2017-11-06 15:43:57 +0100 |
commit | 6d810d71f4f2e2ee0be749a53e328c3719db00f9 (patch) | |
tree | d5b20489c2a6dc33b3c9b0c79bf7d02382e26b46 /erts/emulator/utils | |
parent | cfb75380fcba60058825815068eac8e402d10e40 (diff) | |
download | otp-6d810d71f4f2e2ee0be749a53e328c3719db00f9.tar.gz otp-6d810d71f4f2e2ee0be749a53e328c3719db00f9.tar.bz2 otp-6d810d71f4f2e2ee0be749a53e328c3719db00f9.zip |
Remove redundant built-in macro $IS_PACKED()
It can easily be implemented as $OPERAND_POSITION($Operand) == 0.
Diffstat (limited to 'erts/emulator/utils')
-rwxr-xr-x | erts/emulator/utils/beam_makeops | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/erts/emulator/utils/beam_makeops b/erts/emulator/utils/beam_makeops index 3e1116ef52..d5cb127246 100755 --- a/erts/emulator/utils/beam_makeops +++ b/erts/emulator/utils/beam_makeops @@ -308,8 +308,7 @@ if ($wordsize == 64) { # my %predef_macros = - (IS_PACKED => ['Expr'], - OPERAND_POSITION => ['Expr'], + (OPERAND_POSITION => ['Expr'], IF => ['Expr','IfTrue','IfFalse'], REFRESH_GEN_DEST => [], ); @@ -1695,8 +1694,6 @@ sub expand_macro { } else { $body = 0; } - } elsif ($name eq 'IS_PACKED') { - $body = ($body =~ /^I\[\d+\]$/) ? 0 : 1; } elsif ($name eq 'IF') { my $expr = $new_bindings{Expr}; my $bool = eval $expr; |