Asm

This is aimed at implementing an inline assembler.

Currently, it provides the following:

BigNum module is also provided. This module is used for passing an integer by BigNum from/to NIF.

Installation

The package can be installed by adding asm to your list of dependencies in mix.exs:

def deps do
  [
    {:asm, "~> 0.0.9"}
  ]
end

Usage

defmodule Foo do
    require Asm
    import Asm
    def add(a, b) when is_int64(a) and is_int64(b) do
        a + b
    end
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/asm.