lkml.org 
[lkml]   [2001]   [Dec]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] task_struct colouring ...
On Sun, 2 Dec 2001, [MOc]cda*mirabilos wrote:

> > > > 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.



- Davide


-
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/

\
 
 \ /
  Last update: 2005-03-22 13:18    [W:0.050 / U:0.288 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site