Skip to content

JulienBe/syracuse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

https://twitter.com/Adam_prepa/status/1503061876778885126

if current & 1 == 0 {                            // % 2 adds about 50% overall
    current = current >> 1;                      // / 2 adds about 100-120% overall
} else {
    current = (current * 3) + 1;
 // current = (current << 1) + current + 1;      // its a tadd slower
 // current = current + current + current + 1;   // about 20% slower
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages