3 releases

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

#2088 in Math

Download history 12/week @ 2024-11-13 30/week @ 2024-11-20 95/week @ 2024-11-27 66/week @ 2024-12-04 87/week @ 2024-12-11 14/week @ 2024-12-18 2/week @ 2024-12-25 52/week @ 2025-01-08 27/week @ 2025-01-15 2/week @ 2025-01-22 63/week @ 2025-01-29 170/week @ 2025-02-05 81/week @ 2025-02-12 47/week @ 2025-02-19 89/week @ 2025-02-26

400 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