Skip to contentSkip to conversation

How does macro time_after(unknown,

KJ Matthew Wilcox 1 participant 1 message Jan 10, 2007 Kernel janitors

lore
Share & tools
lore
#0 lore raw
Quoted 4 lines · Lei W

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
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors