Re: Recent change in tcp_output.c is surely wrong

From: Jamie Lokier (lkd@tantalophile.demon.co.uk)
Date: Thu Jan 20 2000 - 03:47:12 EST


Jesse Pollard wrote:
> I did modify the program slightly:
>
> #define INT_TYPE unsigned short
> #define BITS (sizeof(INT_TYPE)*8-1)

You could also illustrate the problem which started this discussion,
using `(tp->ato << 1) >> 1' to clear the top bit of a `u32', by setting
INT_TYPE to a 32 bit wide unsigned type, the initial value to
`(INT_TYPE) 1 << 31', and BITS to 1.

thanks,
-- Jamie

-
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/



This archive was generated by hypermail 2b29 : Sun Jan 23 2000 - 21:00:22 EST