On 03 Sep 2002 14:14:34 +0100 Toby Speight <[EMAIL PROTECTED]> wrote:

> AL> +    struct {
> AL> +        long padding; /* to prevent unaligned access */
> AL> +        float  f;
> AL> +    } s;
> 
> Would a union achieve the same thing more portably?

It would achieve the same thing, but if it is more portable or not...
I thought about using an union too, but as you see my coin decided to
not use it.

> I suppose, given that this is an autoconf test, the Right Thing is to
> do the same as the actual code we're compiling.  I couldn't find where
> the above test's results get used, but it seems that the int/float

The test was added, but no actual code was able to hit the tree.

> case uses unions in quantize_pvt.c and vbrquantize.c.

Where do you think the above test fails?

Bye,
Alexander.

-- 
      ...and that is how we know the Earth to be banana-shaped.

http://www.Leidinger.net                       Alexander @ Leidinger.net
  GPG fingerprint = C518 BC70 E67F 143F BE91  3365 79E2 9C60 B006 3FE7
_______________________________________________
mp3encoder mailing list
[EMAIL PROTECTED]
http://minnie.tuhs.org/mailman/listinfo/mp3encoder

Reply via email to