prev->avg_slice = (this_slice*1 + prev->avg_slice*1)/2;
My question is, why multiply by 1 ?
ie what is the difference between the following two :
prev->avg_slice = (this_slice*1 + prev->avg_slice*1)/2;
prev->avg_slice = (this_slice + prev->avg_slice)/2;
Cheers Mof.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/