Skip to content

Commit

Permalink
fix: compiling with all features
Browse files Browse the repository at this point in the history
  • Loading branch information
nelson137 committed Mar 29, 2024
1 parent a3ed353 commit a6e63d2
Showing 1 changed file with 18 additions and 3 deletions.
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

0 comments on commit a6e63d2

Please sign in to comment.