News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

BITs extraction from a byte

Started by frktons, February 02, 2013, 02:35:06 AM

Previous topic - Next topic

frktons

Quote from: dedndave on February 02, 2013, 09:06:50 AM
i get 1 clock cycle on my P4 - lol
(it's probably 2 cycles)
that's with no call/ret overhead

That was the target. We got there. Thanks master for your inspiration.  :t
There are only two days a year when you can't do anything: one is called yesterday, the other is called tomorrow, so today is the right day to love, believe, do and, above all, live.

Dalai Lama

frktons

I tried it on my Core Duo, because Kaspersky is giving me problems on
my PIV, and I cannot measure the test, it is always 0.
I need to test it with some more data to have an idea of the performance.

Let's do some modification to the test...
There are only two days a year when you can't do anything: one is called yesterday, the other is called tomorrow, so today is the right day to love, believe, do and, above all, live.

Dalai Lama

frktons

For 12 bytes, adding the overhead of the unrolled cycles
I get these results on Core Duo PC.
Quote
96 cycles
113 cycles
45 cycles

Still a couple of times faster than other solutions anyway.
There are only two days a year when you can't do anything: one is called yesterday, the other is called tomorrow, so today is the right day to love, believe, do and, above all, live.

Dalai Lama

dedndave

prescott w/htt
Quote139 cycles
164 cycles
62 cycles

163 cycles
143 cycles
55 cycles

163 cycles
142 cycles
61 cycles