Searched refs:flt32_val (Results 1 – 2 of 2) sorted by relevance
135 int amd_sfh_float_to_int(u32 flt32_val) in amd_sfh_float_to_int() argument139 mantissa = flt32_val & GENMASK(22, 0); in amd_sfh_float_to_int()140 sign = (flt32_val & BIT(31)) ? -1 : 1; in amd_sfh_float_to_int()141 exp = (flt32_val & ~BIT(31)) >> 23; in amd_sfh_float_to_int()165 flt32_val = BIT(exp) + (mantissa << shift); in amd_sfh_float_to_int()168 flt32_val = BIT(exp) + (mantissa >> shift); in amd_sfh_float_to_int()173 return (((fraction * 100) >> shift) >= 50) ? sign * (flt32_val + 1) : sign * flt32_val; in amd_sfh_float_to_int()
170 int amd_sfh_float_to_int(u32 flt32_val);