Ignore:
Timestamp:
06/04/15 18:46:42 (10 years ago)
Author:
epyon
Message:
  • minimum capacity increase for array
  • fixed limits
  • hash cleanup in rtti
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/nv/stl/rtti_support.hh

    r382 r384  
    6161        }
    6262
    63         // run-time hash
    64         inline uint64 rtti_hash( const char* str )
    65         {
    66                 uint64 hash = detail::rtti_hash_basis;
    67                 while ( *str != 0 )
    68                 {
    69                         hash ^= (uint64)str[0];
    70                         hash *= detail::rtti_hash_prime;
    71                         ++str;
    72                 }
    73                 return hash;
    74         }
    75 
    7663        template < typename T >
    7764        struct rtti_type_hash
Note: See TracChangeset for help on using the changeset viewer.