Bitwise.bsr

You're seeing just the function bsr, go back to Bitwise module for more information.

Specs

bsr(integer(), integer()) :: integer()

Calculates the result of an arithmetic right bitshift.

Allowed in guard tests. Inlined by the compiler.

Examples

iex> bsr(1, 2)
0

iex> bsr(1, -2)
4

iex> bsr(-1, 2)
-1

iex> bsr(-1, -2)
-4