scheduledAssociativeIndexWidth function
- int entryCount
Index width for a scheduled associative memory of entryCount entries.
Implementation
int scheduledAssociativeIndexWidth(int entryCount) {
if (entryCount <= 0) {
throw ArgumentError.value(entryCount, 'entryCount', 'Must be positive.');
}
return max(1, entryCount.log2Ceil);
}