Re: Count bits
Subject : Re: Count bits
From: Ian Ollmann <email@hidden >
Date: Mon, 28 Nov 2005 08:35:17 -0800
Delivered-to: email@hidden
Delivered-to: email@hidden
On Nov 28, 2005, at 8:12 AM, Holger Bettag wrote:
The vectorized version from Apple's pages is potentially the
fastest, if
you can control the surrounding code and keep overhead low (moving
data
between scalar and vector registers is expensive, because you have
to go
through memory). Here are a few more scalar alternatives:
http://graphics.stanford.edu/~seander/bithacks.html
I was interested by this statement:
> This method requires a 64-bit CPU with fast modulus division to be
efficient.
Can anyone name such a processor?
Ian
_______________________________________________
Do not post admin requests to the list. They will be ignored.
PerfOptimization-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/perfoptimization-dev/email@hidden
This email sent to email@hidden
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.