3 releases

0.1.2 Feb 16, 2020
0.1.1 Feb 4, 2020
0.1.0 Feb 4, 2020

#1637 in Math

Download history 15/week @ 2024-01-01 34/week @ 2024-01-08 33/week @ 2024-01-15 20/week @ 2024-01-22 52/week @ 2024-01-29 141/week @ 2024-02-05 160/week @ 2024-02-12 188/week @ 2024-02-19 146/week @ 2024-02-26 84/week @ 2024-03-04

604 downloads per month
Used in pinvec

Custom license

12KB
308 lines

pow_of_2

Integer-like types which can only represent powers of 2. Internally, they are stored as a one-byte exponent. This allows them to implement arithmetic operators with other, simpler artithmetic operators.


lib.rs:

pow_of_2

Integer-like types which can only represent powers of 2. Internally, they are stored as a one-byte exponent. This allows them to implement arithmetic operators with other, simpler artithmetic operators.

No runtime deps