Re: [linux-audio-dev] [ANN] swh plugins release

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-dev] [ANN] swh plugins release
From: Takashi Iwai (tiwai_AT_suse.de)
Date: Wed Dec 03 2003 - 20:14:32 EET


At Wed, 3 Dec 2003 14:54:44 +0000,
Steve Harris wrote:
>
> On Wed, Dec 03, 2003 at 02:55:48PM +0100, Takashi Iwai wrote:
> > as far as i understand, there is no strict definition of behavior
> > about type punning. with GCC, you can use a union as a workaround (as
> > found in info), but it's not sure to work with other compilers...
>
> I though unions were guaranteed to work as long as the punned types are of
> the same size?

on gcc, yes, it's guaranteed to work. but not guaranteed for others,
although i can't imagine there would be any compiler that doesn't
assure this behavior :)

Takashi


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Wed Dec 03 2003 - 20:18:34 EET