7#ifndef INTERNAL_UTILITY_API_H__
8#define INTERNAL_UTILITY_API_H__
62 return quantum * ((value - 1) / quantum + 1);
77 return quantum * (value / quantum);
The declarations in this header file correspond to the definitions in cdi_utility_api....
const char * InternalUtilityKeyEnumToString(InternalEnumStringKeyTypes key_type, int enum_value)
Definition internal_utility.c:90
static int64_t NextMultipleOf(int64_t value, int quantum)
Definition internal_utility.h:58
InternalEnumStringKeyTypes
Enums used to indicate which key-value array a function is to access.
Definition internal_utility.h:30
@ kKeyProbeCommand
Key for ProbeCommand.
Definition internal_utility.h:32
@ kKeyProbeState
Key for ProbeState.
Definition internal_utility.h:31
@ kKeyEndpointManagerCommand
Key for EndpointManagerCommand.
Definition internal_utility.h:33
static int64_t PrevMultipleOf(int64_t value, int quantum)
Definition internal_utility.h:73