diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-08-29 22:41:27 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-08-29 22:41:27 +0300 |
| commit | 260689ea747f93b018ec4a25a2526a7aa05b7cb0 (patch) | |
| tree | a30befd0bafa3a44ec495aaaa8ced56112265f81 /include | |
| parent | 50a9b6780e04ae27cd03323d7fec02e15f7d3086 (diff) | |
| download | gran-260689ea747f93b018ec4a25a2526a7aa05b7cb0.tar.gz gran-260689ea747f93b018ec4a25a2526a7aa05b7cb0.zip | |
remove torus3d
+ Might try to fix it at some point in the future but for now I don't
want to carry around broken code
Diffstat (limited to 'include')
| -rw-r--r-- | include/gran/torus3d/node.h | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/include/gran/torus3d/node.h b/include/gran/torus3d/node.h deleted file mode 100644 index 1240bb4..0000000 --- a/include/gran/torus3d/node.h +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef GRAN_TORUS3D_NODE_H -#define GRAN_TORUS3D_NODE_H - -#include <gran/component.h> -#include <stdint.h> - -struct component *create_torus3d_node(uint8_t x, uint8_t y, uint8_t z); - -stat torus3d_node_connect(struct component *node, - struct component *x_in, - struct component *y_in, - struct component *z_in, - struct component *child, - struct component *x_out, - struct component *y_out, - struct component *z_out); - -static inline void addr_torus3d(uint64_t addr, uint8_t *x, uint8_t *y, - uint8_t *z, uint32_t *off) -{ - if (off) *off = addr & 0xffffffff; - if (x) *x = (addr >> 32) & 0xff; - if (y) *y = (addr >> 40) & 0xff; - if (z) *z = (addr >> 48) & 0xff; - assert(((addr >> 56) & 0xff) == 0); -} - -static inline uint64_t torus3d_addr(uint8_t x, uint8_t y, uint8_t z, - uint32_t off) -{ - return off - | ((uint64_t)x << 32) - | ((uint64_t)y << 40) - | ((uint64_t)z << 48) - ; -} - -#endif /* GRAN_TORUS3D_NODE_H */ |
