Skip to content

Commit 037ff0b

Browse files
authored
Implement BitAssign and Shl/Shr ops (#7)
* Tiny multiply optimization to eliminate extra rounds * Implement in-place Shl/Shr and Assign * Implement BitAssign ops, stub Shl/Shr variants * Implement and test Shl/Shr
1 parent e664fa8 commit 037ff0b

File tree

7 files changed

+433
-105
lines changed

7 files changed

+433
-105
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "fixed-bigint"
3-
version = "0.1.3"
3+
version = "0.1.4"
44
authors = ["kaidokert <[email protected]>"]
55
documentation = "https://docs.rs/fixed-bigint"
66
edition = "2018"

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ The crate is written for `no_std` and `no_alloc` environments with option for pa
1717
The arithmetic operands ( +, -, .add() ) panic on overflow, just like native integer types. Panic-free alternatives like `overlowing_add` and `wrapping_add` are supported.
1818

1919
_TODO list_:
20-
* Implement WrappingShl/Shr, CheckedShl/Shr, ShlAssign, ShrAssign
21-
* Implement BitOrAssign, BitAndAssign, BitXorAssign
2220
* Implement experimental `unchecked_math` operands, unchecked_mul, unchecked_div etc.
2321
* Probably needs its own error structs instead of reusing core::fmt::Error and core::num::ParseIntError
2422
* Decimal string to/from conversion, currently only binary and hex strings are supported.

0 commit comments

Comments
 (0)