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

fix: compiling with all features #360

Merged
merged 1 commit into from
Mar 29, 2024
Merged
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
21 changes: 18 additions & 3 deletions framework_crates/bones_ecs/src/bitset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,26 @@ use crate::prelude::*;
// SIMD processes 256 bits/entities (32 bytes) at once when comparing bitsets.
#[cfg(feature = "keysize16")]
const BITSET_EXP: u32 = 16;
#[cfg(feature = "keysize20")]
#[cfg(all(
feature = "keysize20",
not(feature = "keysize16"),
not(feature = "keysize24"),
not(feature = "keysize32")
))]
const BITSET_EXP: u32 = 20;
#[cfg(feature = "keysize24")]
#[cfg(all(
feature = "keysize24",
not(feature = "keysize16"),
not(feature = "keysize20"),
not(feature = "keysize32")
))]
const BITSET_EXP: u32 = 24;
#[cfg(feature = "keysize32")]
#[cfg(all(
feature = "keysize32",
not(feature = "keysize16"),
not(feature = "keysize20"),
not(feature = "keysize24")
))]
const BITSET_EXP: u32 = 32;

pub use bitset_core::*;
Expand Down
Loading