Re: [PATCH] NFS: Check lengths more thoroughly in NFS4 readdir XDR decode

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

 



On Thu, 2006-08-24 at 20:45 +0100, David Howells wrote:
> Trond Myklebust <[email protected]> wrote:
> 
> > No. I find that mixture of < and <= is much less easy to read. Besides,
> > the compiler should be able to optimise that for me.
> 
> So you don't think they're mathematically equivalent?

The fact that they are mathematically equivalent does not make them
equivalently easy to read.

As long as the compiler is able to optimise it, we should be quite free
to choose one or the other style of code.

I therefore chose the style which explicitly lists the number of 32-bit
words we want to scan.

Trond

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux