Mercurial > hg > audiodb
diff lshlib.h @ 344:223a5994a962
unionized punning of the sbucket.snext field into {subucket* ptr, unsigned numBuckets}snext; so that list-head code is 64-bit friendly.
author | mas01mc |
---|---|
date | Tue, 07 Oct 2008 21:03:26 +0000 |
parents | a6edbe97fddf |
children | f283448a40db |
line wrap: on
line diff
--- a/lshlib.h Tue Oct 07 20:08:22 2008 +0000 +++ b/lshlib.h Tue Oct 07 21:03:26 2008 +0000 @@ -175,15 +175,18 @@ friend class H; friend class G; bucket* next; - sbucket* snext; + union { + sbucket* ptr; + Uns32T numBuckets; + } snext; public: unsigned int t2; bucket(){ next=0; - snext=0; + snext.ptr=0; t2=IFLAG; } - ~bucket(){delete next;delete snext;} + ~bucket(){delete next;delete snext.ptr;} bucket* get_next(){return next;} };