avoid some truncation to 'int'
This series covers some minor changes that avoid use of ROUND
in unnecessary places and replaces MIN
and MAX
with fmin
and fmax
. This is part of general moves towards more reliance on the C standard library instead of in-tree alternatives and reducing loss of precision where possible.