22 return ((
id * (
id+17)) % max);
34 int n, t, c, i, local_id = 0, pass;
35 const int NUM_PASSES = 4;
36 int *cell_numTerms =
calloc(numCells,
sizeof(
int));
47 nets[n]->m_terms[t]->m_data = -1;
50 cells[c]->
m_data = local_id;
51 cells[c]->
m_x = outputBox.
x + 0.5*outputBox.
w;
52 cells[c]->
m_y = outputBox.
y + 0.5*outputBox.
h;
60 cell_numTerms[local_id]++;
72 cell_terms[cell_numTerms[local_id]++] = nets[n];
78 for(pass=0; pass<NUM_PASSES; pass++)
80 for(n=0; n<cell_numTerms[c]; n++) {
102 if (cell->
m_x < box.
x) len += (box.
x - cell->
m_x);
103 if (cell->
m_x > box.
x+box.
w) len += (cell->
m_x-box.
x-box.
w);
104 if (cell->
m_y < box.
y) len += (box.
x - cell->
m_y);
105 if (cell->
m_y > box.
y+box.
h) len += (cell->
m_y-box.
y-box.
h);
ABC_NAMESPACE_IMPL_START int sqHashId(int id, int max)
float fastEstimate(ConcreteCell *cell, int numNets, ConcreteNet *nets[])
#define ABC_NAMESPACE_IMPL_END
#define ABC_NAMESPACE_IMPL_START
Rect getNetBBox(const ConcreteNet *net)
Returns the bounding box of a net.