<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/ewah, branch v2.6.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.6.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.6.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2015-06-24T19:21:44Z</updated>
<entry>
<title>Merge branch 'es/osx-header-pollutes-mask-macro'</title>
<updated>2015-06-24T19:21:44Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-06-24T19:21:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6da9f888daab2d18c1e5ae8252f631d38fb80e8a'/>
<id>urn:sha1:6da9f888daab2d18c1e5ae8252f631d38fb80e8a</id>
<content type='text'>
* es/osx-header-pollutes-mask-macro:
  ewah: use less generic macro name
  ewah/bitmap: silence warning about MASK macro redefinition
</content>
</entry>
<entry>
<title>ewah: use less generic macro name</title>
<updated>2015-06-03T07:04:01Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2015-06-03T06:39:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=34b935c01f28d34f6764f0e1140ad47e7abdde1b'/>
<id>urn:sha1:34b935c01f28d34f6764f0e1140ad47e7abdde1b</id>
<content type='text'>
The ewah/ewok.h header pollutes the global namespace with
"BITS_IN_WORD", without any specific notion that we are
talking about the bits in an eword_t. We can give this the
more specific name "BITS_IN_EWORD".

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Reviewed-by: Eric Sunshine &lt;sunshine@sunshineco.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>ewah/bitmap: silence warning about MASK macro redefinition</title>
<updated>2015-06-03T07:03:03Z</updated>
<author>
<name>Eric Sunshine</name>
<email>sunshine@sunshineco.com</email>
</author>
<published>2015-06-03T06:39:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=414382fb00c72babe2b22ef0fa757ea7c960f5ce'/>
<id>urn:sha1:414382fb00c72babe2b22ef0fa757ea7c960f5ce</id>
<content type='text'>
On PowerPC Mac OS X (10.5.8 "Leopard" with Xcode 3.1),
system header /usr/include/ppc/param.h[1] pollutes the
preprocessor namespace with a macro generically named MASK.
This conflicts with the same-named macro in ewah/bitmap.c.
We can avoid this conflict by using a more specific name.

[1]: Included indirectly via:
     git-compat-util.h -&gt;
     sys/sysctl.h -&gt;
     sys/ucred.h -&gt;
     sys/param.h -&gt;
     machine/param.h -&gt;
     ppc/param.h

Signed-off-by: Eric Sunshine &lt;sunshine@sunshineco.com&gt;
Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>ewah: add convenient wrapper ewah_serialize_strbuf()</title>
<updated>2015-03-12T20:45:16Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2015-03-08T10:12:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=be0d9d532326a81d761913e3ec9e2e7c62eeca7b'/>
<id>urn:sha1:be0d9d532326a81d761913e3ec9e2e7c62eeca7b</id>
<content type='text'>
Signed-off-by: Nguyễn Thái Ngọc Duy &lt;pclouds@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jk/pack-bitmap'</title>
<updated>2015-02-18T19:45:00Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-02-18T19:45:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2c1f554d0ca2c35c213d68d94baf30f11180f4ce'/>
<id>urn:sha1:2c1f554d0ca2c35c213d68d94baf30f11180f4ce</id>
<content type='text'>
The pack bitmap support did not build with older versions of GCC.

* jk/pack-bitmap:
  ewah: fix building with gcc &lt; 3.4.0
</content>
</entry>
<entry>
<title>ewah: fix building with gcc &lt; 3.4.0</title>
<updated>2015-02-04T18:45:31Z</updated>
<author>
<name>Tom G. Christensen</name>
<email>tgc@statsbiblioteket.dk</email>
</author>
<published>2015-02-04T08:23:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=bd4e8822da3bf6ce28a0c5f7c1bbf1b6341c0586'/>
<id>urn:sha1:bd4e8822da3bf6ce28a0c5f7c1bbf1b6341c0586</id>
<content type='text'>
The __builtin_ctzll function was added in gcc 3.4.0.
This extends the check for gcc so that use of __builtin_ctzll is only
enabled if gcc &gt;= 3.4.0.

Signed-off-by: Tom G. Christensen &lt;tgc@statsbiblioteket.dk&gt;
Reviewed-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>ewah: delete unused ewah_read_mmap_native declaration</title>
<updated>2014-04-29T19:43:16Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2014-04-28T10:55:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=16fc2b7a9ca54b12b06bb3d677db65e5e64638c5'/>
<id>urn:sha1:16fc2b7a9ca54b12b06bb3d677db65e5e64638c5</id>
<content type='text'>
Signed-off-by: Nguyễn Thái Ngọc Duy &lt;pclouds@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>ewah: fix constness of ewah_read_mmap</title>
<updated>2014-04-29T19:43:15Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2014-04-28T10:55:22Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a0a2f7d79c953b012adcfb0be3f9a60d5efbf644'/>
<id>urn:sha1:a0a2f7d79c953b012adcfb0be3f9a60d5efbf644</id>
<content type='text'>
Signed-off-by: Nguyễn Thái Ngọc Duy &lt;pclouds@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>ewah_bitmap.c: do not assume size_t and eword_t are the same size</title>
<updated>2014-04-22T23:21:16Z</updated>
<author>
<name>Kyle J. McKay</name>
<email>mackyle@gmail.com</email>
</author>
<published>2014-04-22T22:53:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=68f4e1fc6abd332726dd281c76dd63ce7d13d7a1'/>
<id>urn:sha1:68f4e1fc6abd332726dd281c76dd63ce7d13d7a1</id>
<content type='text'>
When buffer_grow changes the size of the buffer using realloc,
it first computes and saves the rlw pointer's offset into the
buffer using (uint8_t *) math before the realloc but then
restores it using (eword_t *) math.

In order to do this it's necessary to convert the (uint8_t *)
offset into an (eword_t *) offset.  It was doing this by
dividing by the sizeof(size_t).  Unfortunately sizeof(size_t)
is not same as sizeof(eword_t) on all platforms.

This causes illegal memory accesses and other bad things to
happen when attempting to use bitmaps on those platforms.

Fix this by dividing by the sizeof(eword_t) instead which
will always be correct for all platforms.

Signed-off-by: Kyle J. McKay &lt;mackyle@gmail.com&gt;
Acked-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>ewah: unconditionally ntohll ewah data</title>
<updated>2014-02-12T19:21:29Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2014-02-12T16:48:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6b5b3a27b7faf9d72efec28fa017408daf45cd00'/>
<id>urn:sha1:6b5b3a27b7faf9d72efec28fa017408daf45cd00</id>
<content type='text'>
Commit a201c20 tried to optimize out a loop like:

  for (i = 0; i &lt; len; i++)
	  data[i] = ntohll(data[i]);

in the big-endian case, because we know that ntohll is a
noop, and we do not need to pay the cost of the loop at all.
However, it mistakenly assumed that __BYTE_ORDER was always
defined, whereas it may not be on systems which do not
define it by default, and where we did not need to define it
to set up the ntohll macro. This includes OS X and Windows.

We could muck with the ordering in compat/bswap.h to make
sure it is defined unconditionally, but it is simpler to
still to just execute the loop unconditionally. That avoids
the application code knowing anything about these magic
macros, and lets it depend only on having ntohll defined.

And since the resulting loop looks like (on a big-endian
system):

  for (i = 0; i &lt; len; i++)
	  data[i] = data[i];

any decent compiler can probably optimize it out.

Original report and analysis by Brian Gernhardt.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
