Bitmap.Utils

Source

Summary

pow(x, n)

Binary exponentiation to support large integers which :math.pow can’t since it returns floats

Functions

pow(x, n)

Binary exponentiation to support large integers which :math.pow can’t since it returns floats

Examples

iex> Bitmap.Utils.pow(2, 10)
1024
iex> Bitmap.Utils.pow(2, 9)
512
Source