tests/rodinia/tests/mummergpu/suffix-tree.cpp
unsigned char b2i(char base)
{
  switch (base)
  {
    case 'A' : return 0;
    case 'C' : return 1;
    case 'G' : return 2;
    case 'T' : return 3;
    case '$' : return 4;

    default: 
      cerr << "Unknown base: " << base << endl;
      return b2i('A');
  };
}
// Helper to convert from ascii to single byte
Helper to convert from ascii to single byte
Helper to convert from ascii to single byte
unsigned char b2i(char base)
{
  switch (base)
  {
    case 'A' : return 0;
    case 'C' : return 1;
    case 'G' : return 2;
    case 'T' : return 3;
    case '$' : return 4;
    default: 
      cerr << "Unknown base: " << base << endl;
      return b2i('A');
  };
}
unsigned char b2i ( char base ) { switch ( base ) { case ' ' : return 0 ; case ' ' : return 1 ; case ' ' : return 2 ; case ' ' : return 3 ; case ' ' : return 4 ; default : cerr << " " << base << endl ; return b2i ( ' ' ) ; } ; }
Helper to convert from ascii to single byte
Helper to convert from ascii to single byte