diff options
author | Nelson Vides <videsnelson@gmail.com> | 2021-04-07 17:52:11 +0200 |
---|---|---|
committer | Nelson Vides <videsnelson@gmail.com> | 2021-04-07 17:52:11 +0200 |
commit | bda6477dd408f627126bbe9eb60d9ea26fa7e0b6 (patch) | |
tree | 2db6321787762ecbafaa53cad6e43cbffa72b663 | |
parent | 5786568adeabc7c78b4e86479bf2f3efe92242b5 (diff) | |
download | erlang-bda6477dd408f627126bbe9eb60d9ea26fa7e0b6.tar.gz |
Mark hex function as inline
-rw-r--r-- | lib/stdlib/src/binary.erl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/stdlib/src/binary.erl b/lib/stdlib/src/binary.erl index 7bfca5084c..0ed44aa7a3 100644 --- a/lib/stdlib/src/binary.erl +++ b/lib/stdlib/src/binary.erl @@ -366,6 +366,7 @@ get_opts_replace(_,_) -> %% Hex encoding functions %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -define(HEX(X), (hex(X)):16). +-compile({inline,[hex/1]}). -spec encode_hex(Bin) -> Bin2 when Bin :: binary(), Bin2 :: <<_:_*16>>. |