cvs commit: src/sys/kern sched_ule.c

Joerg Sonnenberger joerg at britannica.bec.de
Sat Mar 17 20:17:43 UTC 2007


On Sat, Mar 17, 2007 at 09:00:05PM +0100, Max Laier wrote:
> I find this strange.  According to the spec "(Decrementing is equivalent 
> to subtracting 1.)", but "pri = --pri % RQ_NQS;" will behave like you 
> expect, while "pri = (pri - 1) % RQ_NQS;" clearly didn't.

Isn't pri = --pri invalid (in the sense of undefined) as well?

Joerg


More information about the cvs-src mailing list