or

bool cmp3c(string a, string b) pure
{
  if(a.length!=3)return false;
  return *cast(char[3]*)a.ptr==*cast(char[3]*)b.ptr;
}

llvm.memcmp should rock with lengths known at compile time.

Reply via email to