Re: [RFC][PATCH] kernel: Replace timeconst.pl with a bc script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 02/15/2013 03:41 PM, Michal Marek wrote:
I can merge it into the kbuild tree if wanted. I only have one nipick:

+/* Division by reciprocal multiplication. */
+define fmul(b,n,d) {
+       return (2^b*n+d-1)/d;
+}

For readability reasons, I suggest to use the same formatting of
expressions and argument lists like in C:

define fmul(b, n, d) {
        return (2^b * n + d - 1) / d;
}

Otherwise, you can add


Do you actually think that is more readable? Personally, I think it made it harder to read just because it takes up more space than one can quickly glance at.

	-hpa
--
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel.  I don't speak on their behalf.

--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux