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:
Stephen Williams 2008-09-13 14:51:42 -07:00
parent 1f9f73a4be
commit 3d86cc1a15
1 changed files with 4 additions and 3 deletions

View File

@ -262,9 +262,10 @@ class Link {
NetPins *node_;
unsigned pin_;
DIR dir_;
strength_t drive0_, drive1_;
verinum::V init_;
DIR dir_ : 2;
strength_t drive0_ : 3;
strength_t drive1_ : 3;
verinum::V init_ : 2;
private:
Link *next_;