• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Accelerate vBigNum adding in place
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Accelerate vBigNum adding in place


  • Subject: Accelerate vBigNum adding in place
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Fri, 28 Mar 2014 21:03:38 +0700

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?

Gerriet.


_______________________________________________

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


  • Follow-Ups:
    • Re: Accelerate vBigNum adding in place
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Re: NSInteger/NSUInteger Considerations (64 bit)
  • Next by Date: Re: Multiple methods named 'compare:' found
  • Previous by thread: Re: Multiple methods named 'compare:' found
  • Next by thread: Re: Accelerate vBigNum adding in place
  • Index(es):
    • Date
    • Thread