creachadair / imath

Arbitrary precision integer and rational arithmetic library
Other
131 stars 20 forks source link

Bitwise Operators #17

Closed XXDeveloper99 closed 7 years ago

XXDeveloper99 commented 7 years ago

Is support planned for bitwise operators?

creachadair commented 7 years ago

I don't have plans to add any. There are mp_int_mul_pow2 and mp_int_div_pow2 that take advantage of the binary properties of the representation, but if you want other bitwise operations you'll need to implement those separately.