summaryrefslogtreecommitdiff
path: root/lib/compiler/src/erl_bifs.erl
diff options
context:
space:
mode:
authorSverker Eriksson <sverker@erlang.org>2019-08-22 18:52:23 +0200
committerSverker Eriksson <sverker@erlang.org>2019-08-29 15:16:24 +0200
commit2921dfa43a67e93b65a79914f1ee0fbf82b220b5 (patch)
treeff7c52152badcd0af5d20646c6816c2a2d67fcd4 /lib/compiler/src/erl_bifs.erl
parent0b059106055e33241c4d259166bf892253814fbb (diff)
downloaderlang-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.erl2
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;