Re: long double data type
Re: long double data type
- Subject: Re: long double data type
- From: Paul Davis <email@hidden>
- Date: Wed, 16 Jun 2010 10:48:15 -0400
On Wed, Jun 16, 2010 at 6:37 AM, Paul Sanders
<email@hidden> wrote:
> Bonus question: which is faster? (note that the two buffers are actually the
> same size):
>
> (a) char buf [8192]; memset (buf, 0, 8192);
> (b) double buf [1024]; for (int i = 0; i < 1024; ++i) buf [i] = 0.0;
>
> In fact it is (b), because the code generated uses 64 bit loads and stores.
> Just goes to show there's no substitute for a bit of experimentation.
how many compilers and C libraries have you tested this with?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden