[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20070421220147.7144113e@the-village.bc.nu>
Date: Sat, 21 Apr 2007 22:01:47 +0100
From: Alan Cox <alan@...rguk.ukuu.org.uk>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: "John Anthony Kazos Jr." <jakj@...-k-j.com>,
James Bottomley <James.Bottomley@...elEye.com>,
"Cameron, Steve" <Steve.Cameron@...com>,
"Miller, Mike (OS Dev)" <Mike.Miller@...com>,
Hisashi Hifumi <hifumi.hisashi@....ntt.co.jp>,
jens.axboe@...cle.com, linux-kernel@...r.kernel.org,
linux-scsi@...r.kernel.org, trivial@...nel.org
Subject: Re: [PATCH] utilities: add helper functions for safe 64-bit integer
operations as 32-bit halves
> > +#define lower_32_bits(n) (sizeof(n) == 8 ? (u32)(n) : (n))
>
> n&0xffffffff would be simpler.
>
> Do we actually have any call for this?
The only case for all of this we care about is sector_t, which is one
type, with specific properties (eg always being positive). The rest is
over-engineering. Call it sector_upper32() do it the simple way and stop
trying to solve a problem we don't have
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists