geopm
3.1.1.dev272+gdfb40a8d
GEOPM - Global Extensible Open Power Manager
|
Namespaces | |
geopm | |
Functions | |
uint64_t | geopm::hash (const std::string &key) |
uint64_t | geopm_crc32_str (const char *key) |
This function is used to produce unique region IDs for named regions. More... | |
uint64_t | geopm_crc32_u64 (uint64_t begin, uint64_t key) |
DEPRECATED Implements a hashing algorithm. More... | |
uint64_t geopm_crc32_str | ( | const char * | key | ) |
This function is used to produce unique region IDs for named regions.
An Agent implementation with specialized behavior for specific region names can use this function to figure out the region ID to expect for the desired region. Only the bottom 32 bits will be filled in, reserving the top 32 bits for hints and other information.
[in] | key | This string is hashed to produce a 64-bit value. |
uint64_t geopm_crc32_u64 | ( | uint64_t | begin, |
uint64_t | key | ||
) |
DEPRECATED Implements a hashing algorithm.
[in] | begin | Algorithm starts with this value |
[in] | key | This value is hashed to produce a 32-bit result. |