Re: [PATCH] Futexes IV (Fast Lightweight Userspace Semaphores)

Peter Svensson (petersv@psv.nu)
Wed, 6 Mar 2002 00:37:56 +0100 (CET)


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.

Peter

--
Peter Svensson      ! Pgp key available by finger, fingerprint:
<petersv@psv.nu>    ! 8A E9 20 98 C1 FF 43 E3  07 FD B9 0A 80 72 70 AF
------------------------------------------------------------------------
Remember, Luke, your source will be with you... always...

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