Re: [AD] SSE2 vs malloc() |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: alleg-developers@xxxxxxxxxx
- Subject: Re: [AD] SSE2 vs malloc()
- From: Chris <chris.kcat@xxxxxxxxxx>
- Date: Fri, 14 Oct 2005 14:24:31 -0700
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=kVkpatzG5HsBxjVZn/Y37cZ9OH0tVgKma+5ieLXT+FlkFwLdWtdltGIdq+tUmfCqgit7xfu903b/fgFclV0qqXopLdJWCg5aip3ePt0Pc1Yhur1yHo6SAmhjR5O6towlL78qAHb9RYB9n4O4nKIPmU+vNYfEcJw+bH3SWRRyXEk=
On Friday 14 October 2005 10:13 am, aj wrote:
> Robert Ohannessian wrote:
> >What do you do about odd-sized bitmaps?
>
> alignment has little to do with the bitmaps size.
But if you have, say, a 299x645 memory bitmap, then the line[] pointers won't
be 16-byte aligned. You could get around this by making the bitmap pitch
((w*bytes_per_pixel + 15) & ~15), but I'm sure some programs will break if
there's space between the end of line[x] and the beginning of line[x+1].
And also, you can't gaurantee the alignment of video bitmaps, can you?