Lines Matching defs:code
1017 // BUG: the following code will likely scan too much. Use the CANON_5600F approach
1322 int code = static_cast<int>(283 * (1 - gain));
1323 return clamp(code, 0, 255);
1328 int code = static_cast<int>((target_value / value) * 12);
1329 return clamp(code, 0, 255);
1334 // this code path is similar to what generic wolfson code path uses and uses similar constants,
1338 int code = static_cast<int>(283 - 208 / inv_gain);
1339 return clamp(code, 0, 255);
1344 // this code path is similar to what generic wolfson code path uses and uses similar constants,
1347 int code = static_cast<int>(283 - 208 / inv_gain);
1348 return clamp(code, 0, 255);
1369 int code = static_cast<int>((378.0f / 5.0f) * ((target_value - value) / target_value));
1370 return clamp(code, 0, 63);