Home
last modified time | relevance | path

Searched refs:dec_shift (Results 1 – 2 of 2) sorted by relevance

/linux-6.1.9/include/linux/
Dcgroup.h140 int cgroup_parse_float(const char *input, unsigned dec_shift, s64 *v);
/linux-6.1.9/kernel/cgroup/
Dcgroup.c6907 int cgroup_parse_float(const char *input, unsigned dec_shift, s64 *v) in cgroup_parse_float() argument
6918 if (flen < dec_shift) in cgroup_parse_float()
6919 frac *= power_of_ten(dec_shift - flen); in cgroup_parse_float()
6921 frac = DIV_ROUND_CLOSEST_ULL(frac, power_of_ten(flen - dec_shift)); in cgroup_parse_float()
6923 *v = whole * power_of_ten(dec_shift) + frac; in cgroup_parse_float()