<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 2014-03-04 03:54, Nicolas Dufresne
wrote:<br>
</div>
<blockquote cite="mid:1393901647.26052.2.camel@mpb-nicolas"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="GENERATOR" content="GtkHTML/4.6.6">
Le lundi 03 mars 2014 à 22:47 +0100, Carlos Rafael Giani a écrit :<br>
<blockquote type="CITE"> and also read up again that align is
actually a bitmask.<br>
</blockquote>
<br>
I didn't check the code you are referring, but alignment is
usually a shift, not a mask.<br>
<br>
Nicolas
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
gstreamer-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>
</blockquote>
<br>
Well yes. Inside the code, the align value is used for both the
allocation size and the shifting of the pointer, as usual. The odd
thing is that the documentation describes it as a bitmask, and the
code tests that it is a power of two (with the
(align&(align-1))==0 check). This is what I find so strange. Why
this complicated solution? Why not just a plain alignment value?<br>
</body>
</html>