> > Actually, "arithmetic" right shift works for either signed > or unsigned. > > Arithmetic shift looks at the most-significant bit, and > shifts more of > > that in from the left, preserving the sign. > > Eh, right. And I suppose it can actually optimise /16 by an > arithmetic shift. Not sure if it would or wouldn't ... my by-hand analysis (see earlier mail on this thread) found a subtle difference between: (n * 15 / 16) vs. (n - (n >> 16)). As it turned out, the 15/16 approach would have been slightly more "sticky", IIRC. -- Ben -- > > johannes > - To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html