On Wed, 11 Apr 2007, Andrew Morton wrote:
> On Wed, 11 Apr 2007 11:49:19 +0100
> David Howells <[EMAIL PROTECTED]> wrote:
> > Andrew Morton <[EMAIL PROTECTED]> wrote:
> > > To me, "val_outside" means "true if the value is outside":
> > >
> > > bool val_outside(val, start, len)
> > > {
> > > return val < start || val > (start+len-1);
> > > }
> > >
> > > that's what my function does.
> >
> > Seconded. Again, I would suggest calling it something like limit_check() or
> > range_check().
>
> I suspect we would benefit from a proper suite of tools for comparing a
> single number against a range, and for comparing ranges. As you say, it's
And probably we want a generic routine to do intersections of ranges,
too?
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [EMAIL PROTECTED]
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
-
To unsubscribe from this list: send the line "unsubscribe linux-arch" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html