Asm
This is aimed at implementing an inline assembler.
Currently, it provides the is_int64 macro that can be used in when clauses to judge that a value is within INT64.
Installation
The package can be installed
by adding asm to your list of dependencies in mix.exs:
def deps do
[
{:asm, "~> 0.0.1"}
]
endUsage
defmodule Foo do
require Asm
import Asm
def add(a, b) when is_int64(a) and is_int64(b) do
a + b
end
endDocumentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/asm.