Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
P

polyhedron

@polyhedron
About
Posts
1
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • contiguous bits algorithm.
    P polyhedron

    fn(WORD w) { WORD mark=0x8000; if(w&mark) { mark >>= 1; while( (w&mark) && mark ) mark >>= 1; if(mark==0)//w must = 0xffff,return 1 or 2 return 2;//also can return 1 if(w&(mark-1)) return 0; else return 2; } else { mark >>= 1; while( ((w&mark)==0) && mark ) mark >>= 1; if( (w&(mark-1))==(mark-1) ) return 1; else return 0; } }

    Algorithms algorithms tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups