Reduce the size of Link class objects.
Put the enumerated members of the Link class into bit fields to keep the size down to a minimum.
This commit is contained in:
parent
1f9f73a4be
commit
3d86cc1a15
|
|
@ -262,9 +262,10 @@ class Link {
|
||||||
NetPins *node_;
|
NetPins *node_;
|
||||||
unsigned pin_;
|
unsigned pin_;
|
||||||
|
|
||||||
DIR dir_;
|
DIR dir_ : 2;
|
||||||
strength_t drive0_, drive1_;
|
strength_t drive0_ : 3;
|
||||||
verinum::V init_;
|
strength_t drive1_ : 3;
|
||||||
|
verinum::V init_ : 2;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Link *next_;
|
Link *next_;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue