[PATCH] util.h: getbe32() and putbe32() use intrinsic function to improve performance

Matt Mackall mpm at selenic.com
Wed Sep 18 13:52:48 CDT 2013


On Sat, 2013-09-14 at 11:23 +0800, elson.wei at gmail.com wrote:
> # HG changeset patch
> # User Wei, Elson <elson.wei at gmail.com>
> # Date 1379128954 -28800
> #      Sat Sep 14 11:22:34 2013 +0800
> # Node ID 5e59af7da42418a2d79ad8720d4eb9725851112b
> # Parent  f3beb092c0285cd118c4af05688495f05aca8f3a
> util.h: getbe32() and putbe32() use intrinsic function to improve performance
> 
> Refer to https://bugzilla.mozilla.org/show_bug.cgi?id=351557. It can improve
> byte-swapping performance by intrinsic function.

Queueing this to default despite failure to measure as it appears
obviously correct. Thanks.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list