All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [KJ] How does macro time_after(unknown,
@ 2007-01-10 14:00 Matthew Wilcox
  0 siblings, 0 replies; only message in thread
From: Matthew Wilcox @ 2007-01-10 14:00 UTC (permalink / raw)
  To: kernel-janitors

On Wed, Jan 10, 2007 at 09:40:19PM +0800, Lei W wrote:
> BUT why the macro
> #define time_after(unknown,known) ((long)(unknown) -
> (long)(known)<0))
> will not?

Just think about it a bit.  What happens near extreme points?

time_after(a, b)

If a is 100 greater than b, how does it behave when b is slightly below
0?  Slightly above 0?  Near INT_MAX?  Near 2^32?
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-01-10 14:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-10 14:00 [KJ] How does macro time_after(unknown, Matthew Wilcox

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.