Skip to content

Commit c69f0ff

Browse files
committed
v0.5.5
1 parent 8e9aed1 commit c69f0ff

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

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

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ Please read the [API documentation here](https://docs.rs/fixedbitset/)
1010

1111
# Recent Changes
1212

13+
- 0.5.5
14+
- [#116](https://github.com/petgraph/fixedbitset/pull/116): Add functions for counting the results of a set operation (`union_count`,
15+
`intersection_count`, `difference_count`, `symmetric_difference_count`) by @james7132.
16+
- [#118](https://github.com/petgraph/fixedbitset/pull/118): Shrink the stack size of FixedBitset. There should be zero stack size overhead
17+
compared to a Vec.
18+
- [#119](https://github.com/petgraph/fixedbitset/pull/119): Fix builds for wasm32.
19+
- [#121](https://github.com/petgraph/fixedbitset/pull/121): Add support for SIMD acceleration for AVX builds.
1320
- 0.5.4
1421
- [#112](https://github.com/petgraph/fixedbitset/pull/112): Fix undefined behavior in IntoOnes and setup testing with MIRI by @SkiFire13
1522
- 0.5.3 (yanked)

src/block/avx.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ impl Block {
1212
#[inline]
1313
pub fn is_empty(self) -> bool {
1414
unsafe {
15-
let value = core::mem::transmute(self);
15+
let value = _mm256_castpd_si256(self.0);
1616
_mm256_testz_si256(value, value) == 1
1717
}
1818
}
@@ -85,7 +85,7 @@ impl PartialEq for Block {
8585
fn eq(&self, other: &Self) -> bool {
8686
unsafe {
8787
let new = _mm256_xor_pd(self.0, other.0);
88-
let neq = core::mem::transmute(new);
88+
let neq = _mm256_castpd_si256(new);
8989
_mm256_testz_si256(neq, neq) == 1
9090
}
9191
}

0 commit comments

Comments
 (0)