• 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 framework / memory alignment questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Accelerate framework / memory alignment questions


  • Subject: Accelerate framework / memory alignment questions
  • From: dct <email@hidden>
  • Date: Tue, 01 Feb 2011 12:53:32 -0800

I now understand that, to get accelerated performance, I need to set memory
alignment for vector variables.  I have several questions.

 a)  I see that the syntax for a float variable declaration is:
	  float vector[10] __attribute__ ((aligned));
      and that this results in 16-byte alignment.
      Would I set an allocated buffer in similar fashion? i.e.,
	  vector = calloc( 10, sizeof(float) ) __attribute__ ((aligned));

b)  Does a declaration
	  double vector[10] __attribute__ ((aligned));
      also set 16-byte alignment (or is it 32)?

 c)  Is there an easy way to force alignment on all of the methods and functions
       included in a class, or even across a project?

Thanks, Don Thompson _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Accelerate framework / memory alignment questions
      • From: Jean-Daniel Dupas <email@hidden>
  • Prev by Date: Modifying InterfaceBuilder - make “<x> Identity” Palette an ordinary non-floating window?
  • Next by Date: Re: Accelerate framework / memory alignment questions
  • Previous by thread: Re: Modifying InterfaceBuilder - make “<x> Identity” Palette an ordinary non-floating window?
  • Next by thread: Re: Accelerate framework / memory alignment questions
  • Index(es):
    • Date
    • Thread