src/dpdk/drivers/net/cxgbe/cxgbe_compat.h
static inline unsigned int mult_frac(unsigned int x, unsigned int numer,
				     unsigned int denom)
{
	unsigned int quot = x / denom;
	unsigned int rem = x % denom;

	return (quot * numer) + ((rem * numer) / denom);
}
/*
 * Multiplies an integer by a fraction, while avoiding unnecessary
 * overflow or loss of precision.
 */
Multiplies an integer by a fraction, while avoiding unnecessary
overflow or loss of precision.
Multiplies an integer by a fraction while avoiding unnecessary overflow or loss of precision .
static inline unsigned int mult_frac(unsigned int x, unsigned int numer,
				     unsigned int denom)
{
	unsigned int quot = x / denom;
	unsigned int rem = x % denom;
	return (quot * numer) + ((rem * numer) / denom);
}
static inline unsigned int mult_frac ( unsigned int x , unsigned int numer , unsigned int denom ) { unsigned int quot = x / denom ; unsigned int rem = x % denom ; return ( quot * numer ) + ( ( rem * numer ) / denom ) ; }
Multiplies an integer by a fraction, while avoiding unnecessary
 overflow or loss of precision.
Multiplies an integer by a fraction while avoiding unnecessary overflow or loss of precision .