• 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
Re: AltiVec on OSX in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AltiVec on OSX in Cocoa


  • Subject: Re: AltiVec on OSX in Cocoa
  • From: Jake <email@hidden>
  • Date: Sun, 11 Nov 2001 10:10:50 -0500 (EST)

> You know, the Performance documentation I was reading the other day
> states that the standard malloc always allocates memory on the heap
> aligned to 16-byte boundaries. It might be worth just trying with
> standard malloc first.
>
> See /Developer/Documentation/Essentials/Performance/Performace.pdf, p22
> (Understanding Malloc):
>
> ... The granularity of the blocks malloc returns is 16 bytes. So if you
> ask for 4 bytes, malloc consumes 16 bytes, and if you ask for 24 bytes,
> malloc will consume 32 bytes. ...

that is GREAT! no wonder when I tried running the malloc adjustment code
posted previously 10,000 times, everytime it returned memory on the right
alignment.

jake


References: 
 >Re: AltiVec on OSX in Cocoa (From: Charles Jolley <email@hidden>)

  • Prev by Date: Re: New Cocoa Programmer
  • Next by Date: Re: New Cocoa Programmer
  • Previous by thread: Re: AltiVec on OSX in Cocoa
  • Next by thread: Re: AltiVec on OSX in Cocoa
  • Index(es):
    • Date
    • Thread