Re: Accelerate vBigNum adding in place
Re: Accelerate vBigNum adding in place
- Subject: Re: Accelerate vBigNum adding in place
- From: Ken Thomases <email@hidden>
- Date: Fri, 28 Mar 2014 22:17:42 -0500
On Mar 28, 2014, at 9:03 AM, Gerriet M. Denkmann wrote:
> I need something like:
>
> vU1024 a = ...
> vU1024 b = ...
> a += b
>
> can one do (A):
> vU1024Add( &a, &b, &a);
>
> or do I have to write (B):
> vU1024 temp;
> vU1024Add( &a, &b, &temp) ;
> memcpy(&a, &temp, sizeof(a) );
>
> I tried (A) and it seems to work.
> But this could be some (undocumented) implementation detail, and I am kind of reluctant to rely on it.
> Any authoritative answers?
You're more likely to get an answer from the perfoptimization-dev list <https://lists.apple.com/mailman/listinfo/perfoptimization-dev>.
Regards,
Ken
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden