Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sun, 28 Jun 2015 03:05:25 +0300 (MSK)
From: Alexander Monakov <amonakov@...ras.ru>
To: musl@...ts.openwall.com
Subject: Re: [PATCH v2 4/6] dynlink.c: pass gnu-hash table pointer to
 gnu_lookup

Rich,

here's a version of your bench that should test latency rather than throughput
of the umod operation, with random divisors.

>From my testing it looks like your version with 64-bit add is clearly better
on 64-bit, but loses on 32-bit unless 'add' is made a 64-bit field.

An advantage of 'saturating add' is that it doesn't need extra space ('inc' is
1 byte rather than 4, which are required for 'add').

Alexander

View attachment "umod-bench.c" of type "TEXT/x-c" (3087 bytes)

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.