| 505 | } |
| 506 | |
| 507 | int PositionCacheEntry::Hash(unsigned int styleNumber_, const char *s, unsigned int len_) { |
| 508 | unsigned int ret = s[0] << 7; |
| 509 | for (unsigned int i=0; i<len_; i++) { |
| 510 | ret *= 1000003; |
| 511 | ret ^= s[i]; |
| 512 | } |
| 513 | ret *= 1000003; |
| 514 | ret ^= len_; |
| 515 | ret *= 1000003; |
| 516 | ret ^= styleNumber_; |
| 517 | return ret; |
| 518 | } |
| 519 | |
| 520 | bool PositionCacheEntry::NewerThan(const PositionCacheEntry &other) const { |
| 521 | return clock > other.clock; |
nothing calls this directly
no outgoing calls
no test coverage detected