mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-21 16:18:12 +08:00
Simplify comments on the Color struct
This commit is contained in:
@@ -16,7 +16,6 @@ pub type StorageType = u128;
|
||||
// KeyStates
|
||||
// =========
|
||||
|
||||
// Base-2 logarithm of the storage type used to represents how many bits you need to fully address every bit in that storage type
|
||||
const STORAGE_SIZE: u32 = (std::mem::size_of::<StorageType>() * 8).trailing_zeros();
|
||||
const STORAGE_SIZE_BITS: usize = 1 << STORAGE_SIZE;
|
||||
const KEY_MASK_STORAGE_LENGTH: usize = (NUMBER_OF_KEYS + STORAGE_SIZE_BITS - 1) >> STORAGE_SIZE;
|
||||
|
||||
Reference in New Issue
Block a user