diff options
author | Sverker Eriksson <sverker@erlang.org> | 2019-08-22 18:52:23 +0200 |
---|---|---|
committer | Sverker Eriksson <sverker@erlang.org> | 2019-08-29 15:16:24 +0200 |
commit | 2921dfa43a67e93b65a79914f1ee0fbf82b220b5 (patch) | |
tree | ff7c52152badcd0af5d20646c6816c2a2d67fcd4 /lib/compiler/src/erl_bifs.erl | |
parent | 0b059106055e33241c4d259166bf892253814fbb (diff) | |
download | erlang-2921dfa43a67e93b65a79914f1ee0fbf82b220b5.tar.gz |
erts: Add atom_to_binary/1 and binary_to_atom/1
and binary_to_existing_atom/1
All with default utf8 encoding.
Diffstat (limited to 'lib/compiler/src/erl_bifs.erl')
-rw-r--r-- | lib/compiler/src/erl_bifs.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/compiler/src/erl_bifs.erl b/lib/compiler/src/erl_bifs.erl index 94a5dfe012..1b60995de9 100644 --- a/lib/compiler/src/erl_bifs.erl +++ b/lib/compiler/src/erl_bifs.erl @@ -80,10 +80,12 @@ is_pure(erlang, 'or', 2) -> true; is_pure(erlang, 'rem', 2) -> true; is_pure(erlang, 'xor', 2) -> true; is_pure(erlang, abs, 1) -> true; +is_pure(erlang, atom_to_binary, 1) -> true; is_pure(erlang, atom_to_binary, 2) -> true; is_pure(erlang, atom_to_list, 1) -> true; is_pure(erlang, binary_part, 2) -> true; is_pure(erlang, binary_part, 3) -> true; +is_pure(erlang, binary_to_atom, 1) -> true; is_pure(erlang, binary_to_atom, 2) -> true; is_pure(erlang, binary_to_float, 1) -> true; is_pure(erlang, binary_to_integer, 1) -> true; |