/* estimates division of two 24bit numbers, derived from the ves1820/stv0299 driver code  */
static void divide(int n, int d, int *quotient_i, int *quotient_f)
/* estimates division of two 24bit numbers, derived from the ves1820/stv0299 driver code  */
static void divide(int n, int d, int *quotient_i, int *quotient_f)
{
	unsigned int q, r;
	r = (n % d) << 8;
	q = (r / d);
	if (quotient_i)
		*quotient_i = q;
	if (quotient_f) {
		r = (r % d) << 8;
		q = (q << 8) | (r / d);
		r = (r % d) << 8;
		*quotient_f = (q << 8) | (r / d);
	}
}