Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 5 Mar 2002 18:47:35 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 5 Mar 2002 18:47:25 -0500 Received: from x35.xmailserver.org ([208.129.208.51]:6664 "EHLO x35.xmailserver.org") by vger.kernel.org with ESMTP id ; Tue, 5 Mar 2002 18:47:09 -0500 X-AuthUser: davidel@xmailserver.org Date: Tue, 5 Mar 2002 15:50:38 -0800 (PST) From: Davide Libenzi X-X-Sender: davide@blue1.dev.mcafeelabs.com To: Peter Svensson cc: Hubertus Franke , Rusty Russell , Linux Kernel Mailing List Subject: Re: [PATCH] Futexes IV (Fast Lightweight Userspace Semaphores) 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 On Wed, 6 Mar 2002, Peter Svensson wrote: > On Tue, 5 Mar 2002, Davide Libenzi wrote: > > > > I believe not all machine have alignof == sizeof > > > > Yes but this is always true alignof >= sizeof > > No, this is not true. As the gcc info pages says: > For example, if the target machine requires a `double' value to be > aligned on an 8-byte boundary, then `__alignof__ (double)' is 8. This > is true on many RISC machines. On more traditional machine designs, > `__alignof__ (double)' is 4 or even 2. > A later example shows situations where alignof>sizeof. Yes, it's true. - 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/