From owner-cvs-src@FreeBSD.ORG Sat Mar 17 20:17:43 2007 Return-Path: X-Original-To: cvs-src@freebsd.org Delivered-To: cvs-src@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A1CE916A401 for ; Sat, 17 Mar 2007 20:17:43 +0000 (UTC) (envelope-from joerg@britannica.bec.de) Received: from shell.asta.uni-rostock.de (gateway.stura.uni-rostock.de [139.30.252.67]) by mx1.freebsd.org (Postfix) with ESMTP id 6219C13C459 for ; Sat, 17 Mar 2007 20:17:42 +0000 (UTC) (envelope-from joerg@britannica.bec.de) Received: from britannica.bec.de (unknown [192.168.16.3]) by shell.asta.uni-rostock.de (Postfix) with ESMTP id 4FCD6188E for ; Sat, 17 Mar 2007 20:17:40 +0000 (GMT) Received: by britannica.bec.de (Postfix, from userid 1000) id 587F936CD; Sat, 17 Mar 2007 21:17:33 +0100 (CET) Date: Sat, 17 Mar 2007 21:17:33 +0100 From: Joerg Sonnenberger To: cvs-src@freebsd.org Message-ID: <20070317201733.GA4054@britannica.bec.de> References: <200703171813.l2HIDXWI008212@repoman.freebsd.org> <20070317110821.I560@10.0.0.1> <200703172100.13218.max@love2party.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200703172100.13218.max@love2party.net> User-Agent: Mutt/1.5.13 (2006-08-11) Subject: Re: cvs commit: src/sys/kern sched_ule.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Mar 2007 20:17:43 -0000 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