summaryrefslogtreecommitdiff
path: root/huffman.c
AgeCommit message (Collapse)Author
2009-02-14More Cleanups, found using iccMatt Turner
git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@92 0d43b9a7-5ab2-4d7b-af9d-f64450cef757
2008-11-17Remove malloc return checks. Since they're in loops, they don't prevent ↵Matt Turner
memory from being leaked after the first iteration. Plus, when does malloc fail? git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@78 0d43b9a7-5ab2-4d7b-af9d-f64450cef757
2008-11-17Convert for-if-break construct into do whileMatt Turner
git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@74 0d43b9a7-5ab2-4d7b-af9d-f64450cef757
2008-11-16Fix ansi/pedantic warningsMatt Turner
git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@65 0d43b9a7-5ab2-4d7b-af9d-f64450cef757
2008-11-16-- Remove getScore functionsMatt Turner
-- Replace by making Do* functions return the results directly git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@61 0d43b9a7-5ab2-4d7b-af9d-f64450cef757
2008-11-15Use stdbool.h, bool, true, false instead of manually definingMatt Turner
git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@60 0d43b9a7-5ab2-4d7b-af9d-f64450cef757
2008-11-15Remove inline keyword since functions are being called from a pointerMatt Turner
git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@54 0d43b9a7-5ab2-4d7b-af9d-f64450cef757
2008-11-15-- Remove structs completelyMatt Turner
-- results is now a static variable in each benchmark -- added get*Score routines -- finally got rid of nmglobal.h completely -- removed more useless stuff git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@53 0d43b9a7-5ab2-4d7b-af9d-f64450cef757
2008-11-15Clean huffman struct. Replace with local static variablesMatt Turner
git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@50 0d43b9a7-5ab2-4d7b-af9d-f64450cef757
2008-11-14Remove adjust struct member in favor of a local static variableMatt Turner
git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@44 0d43b9a7-5ab2-4d7b-af9d-f64450cef757
2008-11-14-- Remove useless request_secs from structsMatt Turner
-- Replace useless global variables global_min_ticks and global_seconds with MINIMUM_TICKS and MINIMUM_SECONDS respectively git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@41 0d43b9a7-5ab2-4d7b-af9d-f64450cef757
2008-11-14-- Remove more useless stuffMatt Turner
-- Begin cleaning up structs with consistent naming git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@39 0d43b9a7-5ab2-4d7b-af9d-f64450cef757
2008-11-14Create randnum.h, include in relevant placesMatt Turner
git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@31 0d43b9a7-5ab2-4d7b-af9d-f64450cef757
2008-11-14Finally kill nbench1.hMatt Turner
git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@29 0d43b9a7-5ab2-4d7b-af9d-f64450cef757
2008-11-14-- Remove stop watch functions from idea.c, linear.c, and huffman.cMatt Turner
git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@26 0d43b9a7-5ab2-4d7b-af9d-f64450cef757
2008-11-13Remove AllocateMemory, FreeMemory, MoveMemory, ErrorExit, and ReportError ↵Matt Turner
functions git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@17 0d43b9a7-5ab2-4d7b-af9d-f64450cef757
2008-11-13-- Still working toward killing nbench1.hMatt Turner
-- Removing AllocateMemory and FreeMemory calls git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@15 0d43b9a7-5ab2-4d7b-af9d-f64450cef757
2008-11-12Move static function prototypes from nbench1.h to appropriate filesMatt Turner
git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@14 0d43b9a7-5ab2-4d7b-af9d-f64450cef757
2008-11-11-- Split nbench1.c into component filesMatt Turner
-- Combine wordcat.h with huffman routines in huffman.c -- Readd NNET.DAT (oops) -- Update Makefile to build component files git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@3 0d43b9a7-5ab2-4d7b-af9d-f64450cef757