<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nx-libs/nx-X11/programs/Xserver/include/misc.h, branch pr/render-cleanup</title>
<subtitle>NXv3 (redistributed) 
</subtitle>
<id>https://isbjoern.arctica-project.org/nx-libs/atom?h=pr%2Frender-cleanup</id>
<link rel='self' href='https://isbjoern.arctica-project.org/nx-libs/atom?h=pr%2Frender-cleanup'/>
<link rel='alternate' type='text/html' href='https://isbjoern.arctica-project.org/nx-libs/'/>
<updated>2015-02-18T02:23:43+00:00</updated>
<entry>
<title>include: introduce byte counting functions.</title>
<updated>2015-02-18T02:23:43+00:00</updated>
<author>
<name>Peter Hutterer</name>
<email>peter.hutterer@who-t.net</email>
</author>
<published>2009-06-29T03:09:57+00:00</published>
<link rel='alternate' type='text/html' href='https://isbjoern.arctica-project.org/nx-libs/commit/?id=3937db18a203f9936387286b95328f27013a5ffe'/>
<id>urn:sha1:3937db18a203f9936387286b95328f27013a5ffe</id>
<content type='text'>
This patch adds the following three functions:
 bits_to_bytes(bits) - the number of bytes needed to hold 'bits'
 bytes_to_int32(bytes) - the number of 4-byte units to hold 'bytes'
 pad_to_int32(bytes) - the closest multiple of 4 equal to or larger than
                        'bytes'.

All three operations are common in protocol processing and currently the
server has ((foo + 7)/8 + 3)/4 operations all over the place. A common set
of functions reduce the error rate of these (albeit simple) calculations and
improve readability of the code.

The functions do not check for overflow.

v2: backport to nx-libs 3.6.x as a prereq for
the CVE-2015-0255 fix (Mike DePaulo)

Signed-off-by: Peter Hutterer &lt;peter.hutterer@who-t.net&gt;
</content>
</entry>
<entry>
<title>Imported nx-X11-3.1.0-1.tar.gz</title>
<updated>2011-10-10T15:43:39+00:00</updated>
<author>
<name>Reinhard Tartler</name>
<email>siretart@tauware.de</email>
</author>
<published>2011-10-10T15:43:39+00:00</published>
<link rel='alternate' type='text/html' href='https://isbjoern.arctica-project.org/nx-libs/commit/?id=f4092abdf94af6a99aff944d6264bc1284e8bdd4'/>
<id>urn:sha1:f4092abdf94af6a99aff944d6264bc1284e8bdd4</id>
<content type='text'>
Summary: Imported nx-X11-3.1.0-1.tar.gz
Keywords:

Imported nx-X11-3.1.0-1.tar.gz
into Git repository
</content>
</entry>
</feed>
