tin_popcountll(Value);
#else
   uint64_t v = Value - (((Value) >> 1) & 0x5555555555555555ULL);
   v = (v & 0x3333333333333333ULL) + (((v) >> 2) & 0x3333333333333333ULL);
   v = (v + ((v) >> 4)) & 0x0F0F0F0F0F0F0F0FULL;
   return unsigned((uint64_t)(v * 0x0101010101010101ULL) >> 56);
#endif
}

// *****************************************************************************
// countLeadingOnes_64 - this function return leading number of ones
// it accepts 64 bit input and skip value
// (64 bit edition.)
// *****************************************************************************
static inline uint32_t countLeadingOnes_64(uint64_t __V, uint32_t skip)
{
   uint32_t count = 0;
   if (skip) {
      (__V) <<= (skip);
   }
   while (__V && (__V & (1ULL << 63))) {
      count++;
      (__V) <<= 1;
   }
   return count;
}

// *****************************************************************************
// oct2Bin - this function converts octal to binary format
// *****************************************************************************
static inline  std::string oct2Bin(char oct)
{
   switch (oct) {
      case '\0': {
            return "";
         }
      case '.': {
            return ".";
         }
      case '0': {
            return "000";
         }
      case '1': {
            return "001";
         }
      case '2': {
            return "010";
         }
      case '3': {
            return "011";
         }
      case '4': {
            return "100";
         }
      case '5': {
            return "101";
         }
      case '6': {
            return "110";
         }
      case '7': {
            return "111";
         }
   }

   //assert(0 && "Invalid character in digit string");
   return "";
}

// *****************************************************************************
// hex2Bin - this function converts hex to binary format
// *****************************************************************************
static inline  std