]> granicus.if.org Git - yasm/commit
Switch from using ternary tree to Hash Array Mapped Trie (HAMT), which has
authorPeter Johnson <peter@tortall.net>
Mon, 26 Nov 2001 17:37:09 +0000 (17:37 -0000)
committerPeter Johnson <peter@tortall.net>
Mon, 26 Nov 2001 17:37:09 +0000 (17:37 -0000)
commitce4a5fe02aec3606740195e334f3dd3a34d7857d
treed4038fb29276ae8501cc5097e5efc444aa400c93
parent41d256accc5665599aa8476d5321af26778b0003
Switch from using ternary tree to Hash Array Mapped Trie (HAMT), which has
*much* less overhead.
XXX: current implementation of HAMT is *not* portable due to pointer alignment
restrictions (it uses the LSB of a pointer to store a flag).  Need to write a
portable (if not so space-efficient) equivalent.

svn path=/trunk/yasm/; revision=363
14 files changed:
libyasm/hamt.c [new file with mode: 0644]
libyasm/hamt.h [new file with mode: 0644]
libyasm/linemgr.c
libyasm/symrec.c
splint.sh
src/Makefile.am
src/globals.c
src/hamt.c [new file with mode: 0644]
src/hamt.h [new file with mode: 0644]
src/lclint.sh
src/linemgr.c
src/symrec.c
src/ternary.c [deleted file]
src/ternary.h [deleted file]