/* Identify the highest set bit of a given number */
#include <stdio.h>

#ifndef VALUE
#define VALUE 136
#endif

int
main(void)
{
   int count = -1; 
   int n = VALUE;

   /* Find location of the highest set bit */
   while (n != 0) {
      count++;
      n = n >> 1; /* Note: we could have written: n>>=1 */
   }
   
   printf("Highest set bit in %d: %d\n",VALUE,count);
   
   return 0;
} // main
