Skip to content

Commit 75018b5

Browse files
committed
Formatting fixes
Signed-off-by: Ethan Rogers <[email protected]>
1 parent 57c333b commit 75018b5

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

vpr/src/device/rr_graph_obj.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,7 @@ void RRGraph::set_node_class_num(const RRNodeId& node, const short& class_id) {
992992

993993
void RRGraph::set_node_cost_index(const RRNodeId& node, const RRIndexedDataId& cost_index) {
994994
VTR_ASSERT(valid_node_id(node));
995-
node_cost_indices_[node] = (size_t) cost_index;
995+
node_cost_indices_[node] = (size_t)cost_index;
996996
}
997997

998998
void RRGraph::set_node_direction(const RRNodeId& node, const Direction& direction) {

vpr/src/route/check_rr_graph.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ void check_rr_node(int inode, enum e_route_type route_type, const DeviceContext&
327327
"in check_rr_node: inode %d (type %d) had a ptc_num of %d.\n", inode, rr_type, ptc_num);
328328
}
329329

330-
if ((size_t) cost_index < 0 || (size_t) cost_index >= (int)device_ctx.rr_indexed_data.size()) {
330+
if ((size_t)cost_index < 0 || (size_t)cost_index >= (int)device_ctx.rr_indexed_data.size()) {
331331
VPR_FATAL_ERROR(VPR_ERROR_ROUTE,
332332
"in check_rr_node: node %d cost index (%d) is out of range.\n", inode, cost_index);
333333
}

vpr/src/route/rr_graph_indexed_data.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ static void load_rr_indexed_data_T_values() {
425425
// multiplication by the second term by 0.5 is the result of the Rnode being distributed halfway along a
426426
// wire segment's length times the total capacitance.
427427
rr_indexed_data[RRIndexedDataId(cost_index)].T_linear = Tsw + Rsw * (Cinternalsw + Cnode)
428-
+ 0.5 * Rnode * (Cnode + Cinternalsw);
428+
+ 0.5 * Rnode * (Cnode + Cinternalsw);
429429
rr_indexed_data[RRIndexedDataId(cost_index)].T_quadratic = 0.;
430430
rr_indexed_data[RRIndexedDataId(cost_index)].C_load = 0.;
431431
} else { /* Pass transistor, does not have an internal capacitance*/
@@ -435,7 +435,7 @@ static void load_rr_indexed_data_T_values() {
435435

436436
rr_indexed_data[RRIndexedDataId(cost_index)].T_linear = Tsw + 0.5 * Rsw * Cnode;
437437
rr_indexed_data[RRIndexedDataId(cost_index)].T_quadratic = (Rsw + Rnode) * 0.5
438-
* Cnode;
438+
* Cnode;
439439
}
440440
}
441441
}

vpr/src/route/rr_graph_storage.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -683,11 +683,11 @@ void t_rr_graph_storage::set_node_coordinates(RRNodeId id, short x1, short y1, s
683683

684684
void t_rr_graph_storage::set_node_cost_index(RRNodeId id, RRIndexedDataId new_cost_index) {
685685
auto& node = node_storage_[id];
686-
if ((size_t) new_cost_index >= std::numeric_limits<decltype(node.cost_index_)>::max()) {
686+
if ((size_t)new_cost_index >= std::numeric_limits<decltype(node.cost_index_)>::max()) {
687687
VPR_FATAL_ERROR(VPR_ERROR_ROUTE, "Attempted to set cost_index_ %zu above cost_index storage max value.",
688688
new_cost_index);
689689
}
690-
node.cost_index_ = (size_t) new_cost_index;
690+
node.cost_index_ = (size_t)new_cost_index;
691691
}
692692

693693
void t_rr_graph_storage::set_node_rc_index(RRNodeId id, short new_rc_index) {

0 commit comments

Comments
 (0)