EEP_SCALE
for (i = 0; i < (2 * (pwr - PWR_MIN) / EEP_SCALE + 1); i++)
uint16_t scaleValue = EEP_SCALE;
lRatio = (target - srcLeft) * EEP_SCALE / (srcRight - srcLeft);
rv = targetLeft * (scaleUp ? EEP_SCALE : 1);
} else if (lRatio > EEP_SCALE) {
rv = targetRight * (scaleUp ? EEP_SCALE : 1);
rv = (lRatio * targetRight + (EEP_SCALE - lRatio) *
rv *= EEP_SCALE;
uint32_t target = value * EEP_SCALE;
if (target < (uint32_t)(*pList * EEP_SCALE - EEP_DELTA)) {
if (target > (uint32_t)(listEndValue * EEP_SCALE + EEP_DELTA)) {
if (abs(pList[i] * EEP_SCALE - (int32_t) target) < EEP_DELTA) {
if (target < (uint32_t)(pList[i + 1] * EEP_SCALE - EEP_DELTA)) {
lRatio = (target - srcLeft) * EEP_SCALE / (srcRight - srcLeft);
} else if (lRatio > EEP_SCALE) {
rv = (lRatio * targetRight + (EEP_SCALE - lRatio) *
targetLeft) / EEP_SCALE;
for (i = 0; i < (2 * (pwr - PWR_MIN) / EEP_SCALE + 1); i++) {
lRatio = (target - srcLeft) * EEP_SCALE / (srcRight - srcLeft);
} else if (lRatio > EEP_SCALE) {
rv = (lRatio * targetRight + (EEP_SCALE - lRatio) *
targetLeft) / EEP_SCALE;
uint32_t target = v * EEP_SCALE;
if (target < (uint32_t)(lp[0] * EEP_SCALE - EEP_DELTA)) {
if (target > (uint32_t)(ep[-1] * EEP_SCALE + EEP_DELTA)) {
if (udiff(lp[0] * EEP_SCALE, target) < EEP_DELTA) {
if (target < (uint32_t)(lp[1] * EEP_SCALE - EEP_DELTA)) {