Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » External resources » Bit Twiddling Hacks
Re: Bit Twiddling Hacks [message #30060 is a reply to message #29869] Mon, 06 December 2010 09:00 Go to previous message
mr_ped is currently offline  mr_ped
Messages: 825
Registered: November 2005
Location: Czech Republic - Praha
Experienced Contributor
sent an improvement for the last one couple of days ago and no answer yet... :/

(oh, I mean, I really did love to read trough them, I even learned couple of new tricks, otherwise I wouldn't dare to work on any improvement, so this is the way how I say I like something... I send improvement, hehehe Very Happy )

My version of NextBitPermutation if you are curious: Smile
unsigned int t = (v | (v - 1)) + 1;
w = t | ((v^t) >> (__builtin_ctz(v) + 2));
 
Read Message
Read Message
Read Message icon14.gif
Read Message
Read Message
Previous Topic: Timed demos
Next Topic: Software optimization resources
Goto Forum:
  


Current Time: Fri May 03 00:40:22 CEST 2024

Total time taken to generate the page: 0.05939 seconds