From owner-freebsd-current@FreeBSD.ORG Mon May 11 19:52:44 2015 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AD008F47 for ; Mon, 11 May 2015 19:52:44 +0000 (UTC) Received: from mail-ie0-x230.google.com (mail-ie0-x230.google.com [IPv6:2607:f8b0:4001:c03::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 702D1137A for ; Mon, 11 May 2015 19:52:44 +0000 (UTC) Received: by iepj10 with SMTP id j10so114357978iep.0 for ; Mon, 11 May 2015 12:52:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=Qq84hm8pupYIUAZSL88vQIbio5Glmk9xT3PQPtaAKJA=; b=JziqGlS5pMW7vgVNJGtQ1wk1fPMjLGoPd367FYJAljHQkeqViu/2VaFSJGbY47iimL g060hqpU6NyxdEukewoZCuAcioQry3vs93GtZ9THFcVbHgyUOk+jrtfcXw3XsqA1HJiI eVj4fHGxRjOV+7Vj+RDqR3ZI7ibG0+eb/TwqvBF5wI8D7HnWUUrnfAvyUGOjYre8iKj3 jLPqMPS/9vUBjTTAxOzIMfl+GkDX8bTRSQUjcq0uuoIBgVQhUJSZF2IB/A+V4z/7GAwG npXxZlpinKPe3uR8sPUNTQlEp1zM6/7HMbKbwE44QmHsJtzqdcriBq2hEKeneLhvncwf FASw== X-Received: by 10.50.43.226 with SMTP id z2mr14997684igl.33.1431373963809; Mon, 11 May 2015 12:52:43 -0700 (PDT) MIME-Version: 1.0 Sender: carpeddiem@gmail.com Received: by 10.107.48.3 with HTTP; Mon, 11 May 2015 12:52:23 -0700 (PDT) In-Reply-To: <554F91DE.8010209@selasky.org> References: <554BC475.50203@selasky.org> <554BD2A8.70702@selasky.org> <554C3CCB.3030809@selasky.org> <4937E44E-C0EF-4052-961C-F46D5EC5BE00@gmail.com> <554C8AEB.2080502@selasky.org> <554CC841.60908@freebsd.org> <20150509210525.GA80848@lyxys.ka.sub.org> <554F5379.2070100@selasky.org> <20150510165330.GA86856@lyxys.ka.sub.org> <554F8BA6.9000702@selasky.org> <554F91DE.8010209@selasky.org> From: Ed Maste Date: Mon, 11 May 2015 15:52:23 -0400 X-Google-Sender-Auth: g4dhcL1Kblh158kBNvDb64ARqsw Message-ID: Subject: Re: Race VT+X11 on -current To: Hans Petter Selasky Cc: Oliver Pinter , Wolfgang Zenker , FreeBSD Current Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 May 2015 19:52:44 -0000 On 10 May 2015 at 13:14, Hans Petter Selasky wrote: > > Your patch is correct from what I can see. Signed modulus can be creepy > sometimes! Better if VT_MAXWINDOWS was power of two and we used a bitwise > AND. The patch is correct, although signedness doesn't come into play. The unsigned vw_number just wraps to 2^32-1, which is 3 modulo 12.