Skip to content

Commit ecf08dd

Browse files
authored
v0.5.2 (#108)
1 parent d7ae91f commit ecf08dd

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
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 = "fixedbitset"
3-
version = "0.5.1"
3+
version = "0.5.2"
44
authors = ["bluss"]
55
license = "MIT OR Apache-2.0"
66
readme = "README.md"

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
fixedbitset
22
---
33

4-
A simple bitset container for Rust
4+
A simple fixed size bitset container for Rust.
55

66
Please read the [API documentation here](https://docs.rs/fixedbitset/)
77

@@ -10,6 +10,8 @@ Please read the [API documentation here](https://docs.rs/fixedbitset/)
1010

1111
# Recent Changes
1212

13+
- 0.5.2
14+
- [#86](https://github.com/petgraph/fixedbitset/pull/86): Explicit SIMD vectorization for set operations by @james7132.
1315
- 0.5.1
1416
- [#102](https://github.com/petgraph/fixedbitset/pull/102): Added `contains_unchecked`, `insert_unchecked`, `put_unchecked`,
1517
`set_unchecked`, `toggle_unchecked`, `removed_unchecked`, `copy_bit_unchecked` unsafe variants of the safe functions, by @james7132

src/lib.rs

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
//! `FixedBitSet` is a simple fixed size set of bits.
22
//!
3-
//!
43
//! ### Crate features
54
//!
65
//! - `std` (default feature)
76
//! Disabling this feature disables using std and instead uses crate alloc.
8-
//! Requires Rust 1.36 to disable.
97
//!
10-
//! ### Rust Version
8+
//! ### SIMD Acceleration
9+
//! `fixedbitset` is written with SIMD in mind. The backing store and set operations will use aligned SIMD data types and instructions when compiling
10+
//! for compatible target platforms. The use of SIMD generally enables better performance in many set and batch operations (i.e. intersection/union/inserting a range).
1111
//!
12-
//! This version of fixedbitset requires Rust 1.39 or later.
12+
//! When SIMD is not available on the target, the crate will gracefully fallback to a default implementation. It is intended to add support for other SIMD architectures
13+
//! once they appear in stable Rust.
1314
//!
14-
#![doc(html_root_url = "https://docs.rs/fixedbitset/0.4.2/")]
15+
//! Currently only SSE2/AVX2 on x86/x86_64 and wasm32 SIMD are supported as this is what stable Rust supports.
1516
#![no_std]
1617
#![deny(clippy::undocumented_unsafe_blocks)]
1718

@@ -33,7 +34,7 @@ use core::fmt::{Binary, Display, Error, Formatter};
3334
use core::{fmt::Write, mem::ManuallyDrop};
3435

3536
use core::cmp::{Ord, Ordering};
36-
use core::iter::{Chain, ExactSizeIterator, FromIterator, FusedIterator};
37+
use core::iter::{Chain, FusedIterator};
3738
use core::ops::{BitAnd, BitAndAssign, BitOr, BitOrAssign, BitXor, BitXorAssign, Index};
3839
pub use range::IndexRange;
3940

@@ -1054,9 +1055,9 @@ impl<'a> Iterator for Ones<'a> {
10541055
// Ones will continue to return None once it first returns None.
10551056
impl<'a> FusedIterator for Ones<'a> {}
10561057

1057-
/// An iterator producing the indices of the unset bit in a set.
1058+
/// An iterator producing the indices of the set bit in a set.
10581059
///
1059-
/// This struct is created by the [`FixedBitSet::zeroes`] method.
1060+
/// This struct is created by the [`FixedBitSet::ones`] method.
10601061
pub struct Zeroes<'a> {
10611062
bitset: usize,
10621063
block_idx: usize,

0 commit comments

Comments
 (0)