From 489beadf61d05f40dd4ac40e4e5290502f7ad078 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sat, 9 Aug 2025 17:35:26 +0300 Subject: format --- src/ideal_noc.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'src/ideal_noc.c') diff --git a/src/ideal_noc.c b/src/ideal_noc.c index d2816d6..57afba3 100644 --- a/src/ideal_noc.c +++ b/src/ideal_noc.c @@ -1,10 +1,5 @@ #include -struct reg { - struct packet pkt; - bool busy; -}; - struct noc { struct component component; uint32_t elems; @@ -17,7 +12,8 @@ struct noc { struct component **lower; /* countedby[elems] */ }; -static stat ideal_noc_receive(struct noc *n, struct component *from, struct packet pkt) +static stat ideal_noc_receive(struct noc *n, struct component *from, + struct packet pkt) { (void)from; /* unused */ uint32_t elem; @@ -86,7 +82,8 @@ static void ideal_noc_destroy(struct noc *n) free(n); } -stat ideal_noc_connect(struct component *node, struct component *component, uint32_t elem) +stat ideal_noc_connect(struct component *node, struct component *component, + uint32_t elem) { struct noc *n = (struct noc *)node; assert(elem < n->elems); @@ -114,7 +111,8 @@ struct component *create_ideal_noc(uint32_t elems, size_t latency) return NULL; } - n->lower = (struct component **)calloc(elems, sizeof(struct component *)); + n->lower = (struct component **)calloc(elems, + sizeof(struct component *)); if (!n->lower) { free(n->out); free(n->in); -- cgit v1.3