[linux-audio-dev] [ANN] swh plugins release
Takashi Iwai
tiwai at suse.de
Wed Dec 3 18:14:32 UTC 2003
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
More information about the Linux-audio-dev
mailing list