diff options
author | Eddie Hung <eddie.hung+gitlab@gmail.com> | 2018-07-28 19:52:17 +0000 |
---|---|---|
committer | Eddie Hung <eddie.hung+gitlab@gmail.com> | 2018-07-28 19:52:17 +0000 |
commit | 7c1a7e7596cfdf1718e8c479cb281a3cedf0ec57 (patch) | |
tree | 6f21160deed301364cd866adf9d8dd2244e7c995 /common/nextpnr.h | |
parent | 48b9d05d85dd2192b194cc7f931dfd2ac7663778 (diff) | |
parent | 0eaa92bd6a160696c2f221501d610c99d9231bef (diff) | |
download | nextpnr-7c1a7e7596cfdf1718e8c479cb281a3cedf0ec57.tar.gz nextpnr-7c1a7e7596cfdf1718e8c479cb281a3cedf0ec57.tar.bz2 nextpnr-7c1a7e7596cfdf1718e8c479cb281a3cedf0ec57.zip |
Merge branch 'redist_slack' into 'redist_slack'
Redist slack
See merge request eddiehung/nextpnr!13
Diffstat (limited to 'common/nextpnr.h')
-rw-r--r-- | common/nextpnr.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/nextpnr.h b/common/nextpnr.h index c4c05ae0..38a313fd 100644 --- a/common/nextpnr.h +++ b/common/nextpnr.h @@ -204,6 +204,11 @@ struct DecalXY { DecalId decal; float x = 0, y = 0; + + bool operator==(const DecalXY &other) const + { + return (decal == other.decal && x == other.x && y == other.y); + } }; struct BelPin |