MCPcopy Create free account
hub / github.com/Xtra-Computing/thundersvm / validateHitCounts

Method validateHitCounts

include/thundersvm/util/log.h:2125–2130  ·  view source on GitHub ↗

@brief Validates hit counts and resets it if necessary

Source from the content-addressed store, hash-verified

2123
2124 /// @brief Validates hit counts and resets it if necessary
2125 inline void validateHitCounts(std::size_t n) {
2126 if (m_hitCounts >= base::consts::kMaxLogPerCounter) {
2127 m_hitCounts = (n >= 1 ? base::consts::kMaxLogPerCounter % n : 0);
2128 }
2129 ++m_hitCounts;
2130 }
2131
2132 inline const char* filename(void) const {
2133 return m_filename;

Callers 1

validateEveryNMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected