Source

fc-solve / fc-solve / source / alloc.c

Author Commit Message Labels Comments Date
Shlomi Fish
More consting and JIT declarations. Cleanups for the C code after switching to gcc/C99.
Shlomi Fish
Create the SMALLOC abstraction.
Shlomi Fish
Refactoring: extract the SREALLOC() macro. It reallocates an array pointer based on a sizeof and count.
Shlomi Fish
Removed trailing space from the .[ch[ files. git-svn-id: file:///home/shlomif/Backup/svn-dumps/google-code/svnsync-repos/fc-solve/trunk@3284 e7e8a897-7ba4-4ee7-b36f-f4c66519b19a
Shlomi Fish
Now recycling the hard thread's allocators to prevent excessive mallocs. This keeps the memory in the instance until it is freed and recycles it. It yields a small speed improvement. git-svn-id: file:///home/shlomif/Backup/svn-dumps/google-code/svnsync-repos/fc-solve/trunk@3242 e7e8a897-7ba4-4ee7-b36f-f4c66519b19a
Shlomi Fish
Add a way to change the size of the packs in alloc.c / alloc.h. Going to experiment with different pack sizes and if see if it improves performance. git-svn-id: file:///home/shlomif/Backup/svn-dumps/google-code/svnsync-repos/fc-solve/trunk@3018 e7e8a897-7ba4-4ee7-b36f-f4c66519b19a
Shlomi Fish
Started the int -> fcs_bool_t cleanup. git-svn-id: file:///home/shlomif/Backup/svn-dumps/google-code/svnsync-repos/fc-solve/trunk@2974 e7e8a897-7ba4-4ee7-b36f-f4c66519b19a
Shlomi Fish
Added the BUILDING_DLL define to settle MSVC. git-svn-id: file:///home/shlomif/Backup/svn-dumps/google-code/svnsync-repos/fc-solve/trunk@2052 e7e8a897-7ba4-4ee7-b36f-f4c66519b19a
Shlomi Fish
Merged all the allocators and state_packs into one allocator per hard thread. Moved state_packs.[ch] to the rejects. Changed everything to refer to that allocator. Made ALLOC_SIZE in alloc.c larger so we'll allocate less times and more memory each time. git-svn-id: file:///home/shlomif/Backup/svn-dumps/google-code/svnsync-repos/fc-solve/trunk@2017 e7e8a897-7ba4-4ee7-b36f-f4c66519b19a
Shlomi Fish
Converted fc_solve_compact_allocator_t to a non-malloc()ed struct. git-svn-id: file:///home/shlomif/Backup/svn-dumps/google-code/svnsync-repos/fc-solve/trunk@2003 e7e8a897-7ba4-4ee7-b36f-f4c66519b19a
Shlomi Fish
Removed the foreach function that was not used. git-svn-id: file:///home/shlomif/Backup/svn-dumps/google-code/svnsync-repos/fc-solve/trunk@1928 e7e8a897-7ba4-4ee7-b36f-f4c66519b19a
Shlomi Fish
More identifier cleanup. git-svn-id: file:///home/shlomif/Backup/svn-dumps/google-code/svnsync-repos/fc-solve/trunk@1926 e7e8a897-7ba4-4ee7-b36f-f4c66519b19a
Shlomi Fish
Removed dmalloc - valgrind++. git-svn-id: file:///home/shlomif/Backup/svn-dumps/google-code/svnsync-repos/fc-solve/trunk@1908 e7e8a897-7ba4-4ee7-b36f-f4c66519b19a
Shlomi Fish
Fixed a comment git-svn-id: file:///home/shlomif/Backup/svn-dumps/google-code/svnsync-repos/fc-solve/trunk@1883 e7e8a897-7ba4-4ee7-b36f-f4c66519b19a
Shlomi Fish
Removed some whitespace. git-svn-id: file:///home/shlomif/Backup/svn-dumps/google-code/svnsync-repos/fc-solve/trunk@1768 e7e8a897-7ba4-4ee7-b36f-f4c66519b19a
Shlomi Fish
Merged from /branches/get_rid_of_max_num_in_growing_arrays/ . Got rid of all the max_num_$something variables because num_$something is enough to tell where the limit is and grow it if necessary. There's now a lot of bit-fiddling logic to grow the dynamically-sized-arrays when necessary. git-svn-id: file:///home/shlomif/Backup/svn-dumps/google-code/svnsync-repos/fc-solve/trunk@1682 e7e8a897-7ba4-4ee7-b36f-f4c66519b19a
Shlomi Fish
Converted the .c and .h files header-comment to say MIT/X11 Licence. This was done using the Ruby module and script at the scripts dir. git-svn-id: file:///home/shlomif/Backup/svn-dumps/google-code/svnsync-repos/fc-solve/trunk@1381 e7e8a897-7ba4-4ee7-b36f-f4c66519b19a
Shlomi Fish
Removed trailing whitespace - see the script git-svn-id: file:///home/shlomif/Backup/svn-dumps/google-code/svnsync-repos/fc-solve/trunk@1319 e7e8a897-7ba4-4ee7-b36f-f4c66519b19a
Shlomi Fish
Converted away from freecell_solver_ to fc_solve_ which is shorter and saner. freecell_solver_user_ still remains the same in order to not break API compatiblity. git-svn-id: file:///home/shlomif/Backup/svn-dumps/google-code/svnsync-repos/fc-solve/trunk@1174 e7e8a897-7ba4-4ee7-b36f-f4c66519b19a
Shlomi Fish
Merged the changes from the 2.8.x branch where I deprecate the vipe.technion.ac.il hostname. git-svn-id: file:///home/shlomif/Backup/svn-dumps/google-code/svnsync-repos/fc-solve/trunk@736 e7e8a897-7ba4-4ee7-b36f-f4c66519b19a
Tags
latest-devel@737
Shlomi Fish
Copying the version-2_8_x source directory to the trunk - it will be the future FCS developments git-svn-id: file:///home/shlomif/Backup/svn-dumps/google-code/svnsync-repos/fc-solve/trunk@705 e7e8a897-7ba4-4ee7-b36f-f4c66519b19a
Shlomi Fish
Removing the trunk's source directory - it's buggy and up to no good and now I have better priorities. Replacing with the version-2_8_x branch git-svn-id: file:///home/shlomif/Backup/svn-dumps/google-code/svnsync-repos/fc-solve/trunk@704 e7e8a897-7ba4-4ee7-b36f-f4c66519b19a
Shlomi Fish
Made stacks_allocator specific to indirect-stack states. git-svn-id: file:///home/shlomif/Backup/svn-dumps/google-code/svnsync-repos/fc-solve/trunk@47 e7e8a897-7ba4-4ee7-b36f-f4c66519b19a
Shlomi Fish
Removed two debug printf's from the code. git-svn-id: file:///home/shlomif/Backup/svn-dumps/google-code/svnsync-repos/fc-solve/trunk@33 e7e8a897-7ba4-4ee7-b36f-f4c66519b19a
Shlomi Fish
Removed an extra allocation of the compact allocator when rehashing the hash. Now the code seems to be memory leak free. git-svn-id: file:///home/shlomif/Backup/svn-dumps/google-code/svnsync-repos/fc-solve/trunk@32 e7e8a897-7ba4-4ee7-b36f-f4c66519b19a
Shlomi Fish
Changed the constantly used operations into macros. git-svn-id: file:///home/shlomif/Backup/svn-dumps/google-code/svnsync-repos/fc-solve/trunk@27 e7e8a897-7ba4-4ee7-b36f-f4c66519b19a
Shlomi Fish
Added an opening comment to alloc.c git-svn-id: file:///home/shlomif/Backup/svn-dumps/google-code/svnsync-repos/fc-solve/trunk@24 e7e8a897-7ba4-4ee7-b36f-f4c66519b19a
Shlomi Fish
Converted the hash to use the compact allocator. git-svn-id: file:///home/shlomif/Backup/svn-dumps/google-code/svnsync-repos/fc-solve/trunk@21 e7e8a897-7ba4-4ee7-b36f-f4c66519b19a
Shlomi Fish
alloc.c is finished. Now to integrate it with the rest of FCS. git-svn-id: file:///home/shlomif/Backup/svn-dumps/google-code/svnsync-repos/fc-solve/trunk@20 e7e8a897-7ba4-4ee7-b36f-f4c66519b19a
Shlomi Fish
Added the allocator. git-svn-id: file:///home/shlomif/Backup/svn-dumps/google-code/svnsync-repos/fc-solve/trunk@18 e7e8a897-7ba4-4ee7-b36f-f4c66519b19a