Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/gpu/drm/amd/display/dc/basics/
Dcustom_float.c41 struct fixed31_32 mantiss; in build_custom_float() local
87 mantiss = dc_fixpt_sub(value, dc_fixpt_one); in build_custom_float()
89 if (dc_fixpt_lt(mantiss, dc_fixpt_zero) || in build_custom_float()
90 dc_fixpt_lt(dc_fixpt_one, mantiss)) in build_custom_float()
91 mantiss = dc_fixpt_zero; in build_custom_float()
93 mantiss = dc_fixpt_shl(mantiss, format->mantissa_bits); in build_custom_float()
95 *mantissa = dc_fixpt_floor(mantiss); in build_custom_float()
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/spl/
Dspl_custom_float.c20 struct spl_fixed31_32 mantiss; in spl_build_custom_float() local
66 mantiss = spl_fixpt_sub(value, spl_fixpt_one); in spl_build_custom_float()
68 if (spl_fixpt_lt(mantiss, spl_fixpt_zero) || in spl_build_custom_float()
69 spl_fixpt_lt(spl_fixpt_one, mantiss)) in spl_build_custom_float()
70 mantiss = spl_fixpt_zero; in spl_build_custom_float()
72 mantiss = spl_fixpt_shl(mantiss, format->mantissa_bits); in spl_build_custom_float()
74 *mantissa = spl_fixpt_floor(mantiss); in spl_build_custom_float()