[MPlayer-dev-eng] Re: Should I write Voodoo Banshee VIDIX driver?
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.
Waclaw "Torinthiel" Schiller GG#: 542916, 3073512
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
Size: 189 bytes
Desc: not available
More information about the MPlayer-dev-eng