Aatch / ramp

RAMP - Rust Arithmetic in Multiple Precision
Apache License 2.0
261 stars 38 forks source link

Add `set_bit`, for setting an individual bit. #42

Closed huonw closed 9 years ago

huonw commented 9 years ago

I strongly suspect that the negate_twos_complement calls are unnecessary, but I'm not at all sure what the correct way to implement this is for negative numbers. However, it should be reasonably rare to use these bit operations on negative numbers, so this works for now.