This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-module(hexlify_sample). | |
-export([hexlify/1]). | |
-define(TOHEX(X), | |
begin | |
<<X1:1, X2:1, X3:1, _:1>> = <<X:4>>, | |
TenF = X1 band X2 bor X1 band bnot X2 band X3, | |
X + (1 - TenF) * $0 + TenF * ($A - 10) | |
end). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo ./configure --enable-multibyte --with-features=huge --disable-selinux --prefix=/usr/local --enable-luainterp=yes --with-lua-prefix=/usr --enable-pythoninterp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1> true andalso false. | |
false | |
2> true andalso ok. | |
ok | |
3> false orelse true. | |
true | |
4> false orelse ok. | |
ok |