Changeset 402 for trunk/nv/stl/container/hash_table_policy.hh
- Timestamp:
- 06/13/15 21:51:27 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/nv/stl/container/hash_table_policy.hh
r401 r402 279 279 static uint32 get_bucket_count( uint32 element_count, float load_factor ) 280 280 { 281 uint32 min_count = (uint32)( element_count / load_factor );281 uint32 min_count = static_cast<uint32>( element_count / load_factor ); 282 282 return get_prime_larger_or_equal_to( min_count ); 283 283 } 284 284 static uint32 is_rehash_required( uint32 bucket_count, uint32 element_count, float load_factor ) 285 285 { 286 uint32 min_count = (uint32)( element_count / load_factor );286 uint32 min_count = static_cast<uint32>( element_count / load_factor ); 287 287 if ( bucket_count < 2 || min_count > bucket_count ) 288 288 {
Note: See TracChangeset
for help on using the changeset viewer.