radeon: fix computing difference
Also fix clang warning self-assign. Pointed by clang. Change-Id: I0e104420414fecece87015a0af9a4535ccfc8263 Reviewed-on: https://review.haiku-os.org/c/haiku/+/2401 Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
@@ -102,7 +102,7 @@ void SCREEN_TO_SCREEN_BLIT_PIO(engine_token *et, blit_params *list, uint32 count
|
|||||||
}
|
}
|
||||||
|
|
||||||
++ai->si->engine.count;
|
++ai->si->engine.count;
|
||||||
et = et;
|
(void)et;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -180,7 +180,7 @@ void FILL_RECTANGLE_PIO(engine_token *et, uint32 colorIndex, fill_rect_params *l
|
|||||||
|
|
||||||
}
|
}
|
||||||
++ai->si->engine.count;
|
++ai->si->engine.count;
|
||||||
et = et;
|
(void)et;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -263,7 +263,7 @@ void INVERT_RECTANGLE_PIO(engine_token *et, fill_rect_params *list, uint32 count
|
|||||||
}
|
}
|
||||||
|
|
||||||
++ai->si->engine.count;
|
++ai->si->engine.count;
|
||||||
et = et;
|
(void)et;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -355,7 +355,7 @@ void FILL_SPAN_PIO(engine_token *et, uint32 colorIndex, uint16 *list, uint32 cou
|
|||||||
}
|
}
|
||||||
|
|
||||||
++ai->si->engine.count;
|
++ai->si->engine.count;
|
||||||
et = et;
|
(void)et;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -157,9 +157,9 @@ void Radeon_CalcPLLDividers(
|
|||||||
ref_div * post_div );
|
ref_div * post_div );
|
||||||
|
|
||||||
// absolute error in terms of output clock
|
// absolute error in terms of output clock
|
||||||
error = abs( cur_freq - freq );
|
error = abs( (int32)cur_freq - (int32)freq );
|
||||||
// deviation from perfect VCO clock
|
// deviation from perfect VCO clock
|
||||||
vco_dev = abs( vco - pll->best_vco );
|
vco_dev = abs( (int32)vco - (int32)(pll->best_vco) );
|
||||||
|
|
||||||
// if there is no optimal VCO frequency, choose setting with less error;
|
// if there is no optimal VCO frequency, choose setting with less error;
|
||||||
// if there is an optimal VCO frequency, choose new settings if
|
// if there is an optimal VCO frequency, choose new settings if
|
||||||
@@ -257,7 +257,7 @@ void Radeon_MatchCRTPLL(
|
|||||||
Radeon_CalcPLLDividers( pll, crt_freq, fixed_post_div, dividers );
|
Radeon_CalcPLLDividers( pll, crt_freq, fixed_post_div, dividers );
|
||||||
|
|
||||||
// get absolute CRT clock error per second
|
// get absolute CRT clock error per second
|
||||||
abs_crt_error = abs( dividers->freq - crt_freq );
|
abs_crt_error = abs( (int32)(dividers->freq) - (int32)crt_freq );
|
||||||
|
|
||||||
//SHOW_INFO( 2, "whished=%d, is=%d", crt_freq, dividers->freq );
|
//SHOW_INFO( 2, "whished=%d, is=%d", crt_freq, dividers->freq );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user