Home
last modified time | relevance | path

Searched refs:summand (Results 1 – 7 of 7) sorted by relevance

/linux/drivers/gpu/drm/amd/display/dc/spl/
H A Dspl_fixpt31_32.h449 const long long summand = spl_fixpt_half.value; in spl_fixpt_round() local
451 ASSERT(LLONG_MAX - (long long)arg_value >= summand); in spl_fixpt_round()
453 arg_value += summand; in spl_fixpt_round()
469 const long long summand = spl_fixpt_one.value - in spl_fixpt_ceil() local
472 ASSERT(LLONG_MAX - (long long)arg_value >= summand); in spl_fixpt_ceil()
474 arg_value += summand; in spl_fixpt_ceil()
H A Dspl_fixpt31_32.c86 unsigned long long summand = (remainder << 1) >= arg2_value; in spl_fixpt_from_fraction() local
88 ASSERT(res_value <= LLONG_MAX - summand); in spl_fixpt_from_fraction()
90 res_value += summand; in spl_fixpt_from_fraction()
/linux/drivers/gpu/drm/amd/display/include/
H A Dfixed31_32.h464 const long long summand = dc_fixpt_half.value; in dc_fixpt_round() local
466 ASSERT(LLONG_MAX - (long long)arg_value >= summand); in dc_fixpt_round()
468 arg_value += summand; in dc_fixpt_round()
484 const long long summand = dc_fixpt_one.value - in dc_fixpt_ceil() local
487 ASSERT(LLONG_MAX - (long long)arg_value >= summand); in dc_fixpt_ceil()
489 arg_value += summand; in dc_fixpt_ceil()
/linux/drivers/gpu/drm/amd/display/dc/basics/
H A Dbw_fixed.c96 uint64_t summand = (remainder << 1) >= arg2_value; in bw_frc_to_fixed() local
98 ASSERT(res_value <= MAX_I64 - summand); in bw_frc_to_fixed()
100 res_value += summand; in bw_frc_to_fixed()
H A Dfixpt31_32.c108 unsigned long long summand = (remainder << 1) >= arg2_value; in dc_fixpt_from_fraction() local
110 ASSERT(res_value <= LLONG_MAX - summand); in dc_fixpt_from_fraction()
112 res_value += summand; in dc_fixpt_from_fraction()
/linux/include/drm/
H A Ddrm_fixed.h184 u64 summand = (rem << 1) >= b_abs; in drm_fixp_from_fraction() local
186 res_abs += summand; in drm_fixp_from_fraction()
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_vpe.c92 uint16_t summand = (remainder << 1) >= arg2_value; in vpe_u1_8_from_fraction() local
94 if ((res_value + summand) > 32767 /* SHRT_MAX */) in vpe_u1_8_from_fraction()
97 res_value += summand; in vpe_u1_8_from_fraction()