src/globals/utils.c
char* binstr64s(uns64 value) {
  static char bin64_buffer[MAX_SIMULTANEOUS_STRINGS][MAX_STR_LENGTH + 1];
  static int  counter = 0;
  char*       temp;
  int         ii = 0;
  counter        = CIRC_INC2(counter, MAX_SIMULTANEOUS_STRINGS);
  while(ii < 64) {
    bin64_buffer[counter][ii] = value & 0x1ULL << (63 - ii) ? '1' : '0';
    ii++;
  }
  ASSERT(0, ii < MAX_STR_LENGTH);
  bin64_buffer[counter][ii] = '\0';
  for(temp = bin64_buffer[counter]; *temp == '0' && *(temp + 1) != '\0'; temp++)
    ;
  return temp;
}
/**************************************************************************************/
/* binstr64s:  Just like binstr64, except it strips off leading zeros */
Just like binstr64, except it strips off leading zeros
Just like binstr64 except it strips off leading zeros
char* binstr64s(uns64 value) {
  static char bin64_buffer[MAX_SIMULTANEOUS_STRINGS][MAX_STR_LENGTH + 1];
  static int  counter = 0;
  char*       temp;
  int         ii = 0;
  counter        = CIRC_INC2(counter, MAX_SIMULTANEOUS_STRINGS);
  while(ii < 64) {
    bin64_buffer[counter][ii] = value & 0x1ULL << (63 - ii) ? '1' : '0';
    ii++;
  }
  ASSERT(0, ii < MAX_STR_LENGTH);
  bin64_buffer[counter][ii] = '\0';
  for(temp = bin64_buffer[counter]; *temp == '0' && *(temp + 1) != '\0'; temp++)
    ;
  return temp;
}
char * binstr64s ( uns64 value ) { static char bin64_buffer [ MAX_SIMULTANEOUS_STRINGS ] [ MAX_STR_LENGTH + 1 ] ; static int counter = 0 ; char * temp ; int ii = 0 ; counter = CIRC_INC2 ( counter , MAX_SIMULTANEOUS_STRINGS ) ; while ( ii < 64 ) { bin64_buffer [ counter ] [ ii ] = value & 0x1ULL << ( 63 - ii ) ? ' ' : ' ' ; ii ++ ; } ASSERT ( 0 , ii < MAX_STR_LENGTH ) ; bin64_buffer [ counter ] [ ii ] = ' \0 ' ; for ( temp = bin64_buffer [ counter ] ; * temp == ' ' && * ( temp + 1 ) != ' \0 ' ; temp ++ ) ; return temp ; }
binstr64s:  Just like binstr64, except it strips off leading zeros
binstr64s : Just like binstr64 except it strips off leading zeros