Home | History | Annotate | Download | only in X86

Lines Matching refs:Table

570 // Efficient Lookup Table Support
589 static bool TableIsSorted(const TableEntry *Table, unsigned NumEntries) {
591 if (!(Table[i] < Table[i+1])) return false;
596 static int Lookup(const TableEntry *Table, unsigned N, unsigned Opcode) {
597 const TableEntry *I = std::lower_bound(Table, Table+N, Opcode);
598 if (I != Table+N && I->from == Opcode)
604 #define ASSERT_SORTED(TABLE)
606 #define ASSERT_SORTED(TABLE) \
607 { static bool TABLE##Checked = false; \
608 if (!TABLE##Checked) { \
609 assert(TableIsSorted(TABLE, array_lengthof(TABLE)) && \
611 TABLE##Checked = true; \