• Home
  • Raw
  • Download

Lines Matching refs:col

48 bool CBC_DefaultPlacement::getBit(int32_t col, int32_t row) {  in getBit()  argument
49 return m_bits[row * m_numcols + col] == 1; in getBit()
51 void CBC_DefaultPlacement::setBit(int32_t col, int32_t row, bool bit) { in setBit() argument
52 m_bits[row * m_numcols + col] = bit ? (uint8_t)1 : (uint8_t)0; in setBit()
54 bool CBC_DefaultPlacement::hasBit(int32_t col, int32_t row) { in hasBit() argument
55 return m_bits[row * m_numcols + col] != 2; in hasBit()
60 int32_t col = 0; in place() local
62 if ((row == m_numrows) && (col == 0)) { in place()
65 if ((row == m_numrows - 2) && (col == 0) && ((m_numcols % 4) != 0)) { in place()
68 if ((row == m_numrows - 2) && (col == 0) && (m_numcols % 8 == 4)) { in place()
71 if ((row == m_numrows + 4) && (col == 2) && ((m_numcols % 8) == 0)) { in place()
75 if ((row < m_numrows) && (col >= 0) && !hasBit(col, row)) { in place()
76 utah(row, col, pos++); in place()
79 col += 2; in place()
80 } while (row >= 0 && (col < m_numcols)); in place()
82 col += 3; in place()
84 if ((row >= 0) && (col < m_numcols) && !hasBit(col, row)) { in place()
85 utah(row, col, pos++); in place()
88 col -= 2; in place()
89 } while ((row < m_numrows) && (col >= 0)); in place()
91 col++; in place()
92 } while ((row < m_numrows) || (col < m_numcols)); in place()
99 int32_t col, in module() argument
104 col += 4 - ((m_numrows + 4) % 8); in module()
106 if (col < 0) { in module()
107 col += m_numcols; in module()
112 setBit(col, row, v != 0); in module()
114 void CBC_DefaultPlacement::utah(int32_t row, int32_t col, int32_t pos) { in utah() argument
115 module(row - 2, col - 2, pos, 1); in utah()
116 module(row - 2, col - 1, pos, 2); in utah()
117 module(row - 1, col - 2, pos, 3); in utah()
118 module(row - 1, col - 1, pos, 4); in utah()
119 module(row - 1, col, pos, 5); in utah()
120 module(row, col - 2, pos, 6); in utah()
121 module(row, col - 1, pos, 7); in utah()
122 module(row, col, pos, 8); in utah()