This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: floor_log2_wide speedup


> I wonder how this compares to the branchless algorithm at
> http://www.aggregate.org/MAGIC/#Log2%20of%20an%20Integer.

I had benchmarked that also.  It's slightly faster than the current
algorithm, but what I posted is still 4x faster than it.

No, I don't know why ;-)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]