Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sun, 2 Dec 2001 14:51:31 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sun, 2 Dec 2001 14:51:22 -0500 Received: from xdsl-213-168-117-70.netcologne.de ([213.168.117.70]:912 "EHLO ecce.homeip.net") by vger.kernel.org with ESMTP id ; Sun, 2 Dec 2001 14:51:11 -0500 Date: Sun, 2 Dec 2001 19:50:28 +0000 (UTC) From: Thorsten Glaser To: Davide Libenzi cc: lkml Subject: Re: [PATCH] task_struct colouring ... In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Dixitur de Davide Libenzi respondebo ad: > > > > > movl %esp, %eax > > > > > andl $-8192, %eax > > > > > movl (%eax), %eax > > > > > > > > Although I'm good in assembly but bad in gas, > > > > do you consider the middle line good style? > > > > > > > > Binary AND with a negative decimal number? > > > > > > ~N = -(N + 1) > > > > I know, but I don't consider this good style, as > > decimal arithmetic is for humans, and binary > > {arithmetic,ops} are for the PC. > > The better solution would be (STACK_SIZE - 1) but it's still decimal. I agree on that, it's way more readable. Please don't think that I'm flaming here, it's just that a) we have a discussion on coding style b) we don't (?) have an assembly coding style c) gas is ugly anyway d) but this seems really... unused Sorry if I have offended you. -mirabilos -- C:\>debug -e100 FA EB FC -g Pssssst... Don't tell anyone I'm free....... - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/