Skip to content

Commit 35a7e3e

Browse files
inline operator()
1 parent c9af1fb commit 35a7e3e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

vpr/src/place/net_cost_handler.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -192,10 +192,8 @@ class NetCostHandler {
192192

193193
class ChanPlaceCostFacContainer : public vtr::NdMatrix<float, 2> {
194194
public:
195-
float& operator()(int i, int j) {
196-
size_t ipp = i + 1;
197-
size_t jpp = j + 1;
198-
return this->operator[](ipp).operator[](jpp);
195+
inline float& operator()(int i, int j) {
196+
return this->operator[]((size_t)(i+1)).operator[]((size_t)(j+1));
199197
}
200198

201199
private:

0 commit comments

Comments
 (0)