From 3d86cc1a150c1ae5eb8e1c88901e92a41bf3a314 Mon Sep 17 00:00:00 2001 From: Stephen Williams Date: Sat, 13 Sep 2008 14:51:42 -0700 Subject: [PATCH] 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. --- netlist.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/netlist.h b/netlist.h index 4777cf700..931b9fe74 100644 --- a/netlist.h +++ b/netlist.h @@ -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_;