diff options
Diffstat (limited to 'common/nextpnr.h')
-rw-r--r-- | common/nextpnr.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/nextpnr.h b/common/nextpnr.h index 1f3e1d08..d89eb15b 100644 --- a/common/nextpnr.h +++ b/common/nextpnr.h @@ -168,6 +168,9 @@ struct Loc { int x = -1, y = -1, z = -1; + Loc() {} + Loc(int x, int y, int z) : x(x), y(y), z(z) {} + bool operator==(const Loc &other) const { return (x == other.x) && (y == other.y) && (z == other.z); } bool operator!=(const Loc &other) const { return (x != other.x) || (y != other.y) || (z == other.z); } }; |