Question about Linus' QOTW
Posted Aug 25, 2011 10:47 UTC (Thu) by
pr1268 (subscriber, #24648)
Parent article:
Quotes of the week
I've questions about Linus' message—immediately preceding "Has anybody ever looked at a real computer?" he says "YOU ARE DIVIDING A UNSIGNED VALUE BY TWO" (emphasis his).
Is his complaint about misuse (or unnecessary use) of the do_div macro? It seems that dividing an unsigned value by two is as easy as a bit shift (instead of a six-line macro in /usr/src/linux/include/asm-generic/div64.h). Thanks for the clarification.
(
Log in to post comments)