Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.5.5 #123

Merged
merged 1 commit into from
Mar 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fixedbitset"
version = "0.5.4"
version = "0.5.5"
authors = ["bluss"]
license = "MIT OR Apache-2.0"
readme = "README.md"
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ Please read the [API documentation here](https://docs.rs/fixedbitset/)

# Recent Changes

- 0.5.5
- [#116](https://github.com/petgraph/fixedbitset/pull/116): Add functions for counting the results of a set operation (`union_count`,
`intersection_count`, `difference_count`, `symmetric_difference_count`) by @james7132.
- [#118](https://github.com/petgraph/fixedbitset/pull/118): Shrink the stack size of FixedBitset. There should be zero stack size overhead
compared to a Vec.
- [#119](https://github.com/petgraph/fixedbitset/pull/119): Fix builds for wasm32.
- [#121](https://github.com/petgraph/fixedbitset/pull/121): Add support for SIMD acceleration for AVX builds.
- 0.5.4
- [#112](https://github.com/petgraph/fixedbitset/pull/112): Fix undefined behavior in IntoOnes and setup testing with MIRI by @SkiFire13
- 0.5.3 (yanked)
Expand Down
4 changes: 2 additions & 2 deletions src/block/avx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ impl Block {
#[inline]
pub fn is_empty(self) -> bool {
unsafe {
let value = core::mem::transmute(self);
let value = _mm256_castpd_si256(self.0);
_mm256_testz_si256(value, value) == 1
}
}
Expand Down Expand Up @@ -85,7 +85,7 @@ impl PartialEq for Block {
fn eq(&self, other: &Self) -> bool {
unsafe {
let new = _mm256_xor_pd(self.0, other.0);
let neq = core::mem::transmute(new);
let neq = _mm256_castpd_si256(new);
_mm256_testz_si256(neq, neq) == 1
}
}
Expand Down