[PATCH 2 of 3] C implementation of revlog index parsing
Bernhard Leiner
mailinglists.bleiner at gmail.com
Sun Oct 19 14:42:53 CDT 2008
2008/10/18 Benoit Boissinot <bboissin at gmail.com>:
> On Fri, Oct 17, 2008 at 1:06 AM, Bernhard Leiner
> <mailinglists.bleiner at gmail.com> wrote:
>> # HG changeset patch
>> # User Bernhard Leiner <bleiner at gmail.com>
>> # Date 1224198218 -7200
>> # Node ID c717c768337dae079aa94b1850f812fd3354bd4c
>> # Parent fd5170c86abb716769ba5e84c19b87fc8ee83f68
>> C implementation of revlog index parsing
>>
>> +static inline uint64_t ntohll(uint64_t x)
>> +{
>> + return (((uint64_t)ntohl((uint32_t)x)) << 32) |
>> + (uint64_t)ntohl((uint32_t)(x >> 32));
>> +}
>
> I've heard a ppc processor being very unhappy with this ;)
Thanks for fixing this... and all the other countless bugs that still
have been in the code!
--
Bernhard Leiner http://bernh.net
More information about the Mercurial-devel
mailing list