[MPlayer-dev-eng] Re: Should I write Voodoo Banshee VIDIX driver?

Torinthiel torinthiel at wp.pl
Mon Mar 22 10:46:44 CET 2004


On Mon, Mar 22, 2004 at 10:11:42AM +0100, Alban Bedel wrote:
> Hi Torinthiel,
> 
> on Mon, 22 Mar 2004 09:39:22 +0100 you wrote:
> 
> > On Sun, Mar 21, 2004 at 11:44:56PM -0800, Georgi Petrov wrote:
> > > Oh, yes - I check wheter something is 4 bytes aligned this way:
> > > 
> > > if ((something & ~0x3) != something) it's not 4 bytes aligned
> > 
> > This is strange for me. Like this i.e 7 is not 4 bytes aligned but 8 is
> > ;)
> 
> Since when is 7 4 bytes aligned ?

Since when it is not? Depends how you store it in memory ;)

> > I think you've ment if ((&something & ~0x3) != &something)
> 
> I don't think bcs here (the var) something is most probably an addresse
> relative to the framebuffer (ie. an offset from the start of the video mem).
> This would then tell you if the local variable you are using for storing
> that value is aligned :)

Ok, if it's address then I withdraw my objections.
Torinthiel

-- 
 Waclaw "Torinthiel" Schiller       GG#: 542916, 3073512
   torinthiel(at)wp(dot)pl
   gpg: B06901F1 fpr: FAA3 559F CAE9 34DE CDC8  7346 2B6E 39F2 B069 01F1
 "No classmates may be used during this examination"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20040322/a0eedb7c/attachment.pgp>


More information about the MPlayer-dev-eng mailing list