Age | Commit message (Collapse) | Author | |
---|---|---|---|
2015-01-03 | Remove debugging statements | Thomas Jespersen | |
And more importantly, free allocated memory! | |||
2014-12-31 | Change erroneous free()'s to mpz_clears() | Thomas Jespersen | |
2014-12-31 | Implement encoding functionality in examples/soleg.c | Thomas Jespersen | |
Add stream_stat() to sole-gmp.c for debugging | |||
2014-12-31 | Make it compile | Thomas Jespersen | |
2014-12-31 | Fix small mistakes | Thomas Jespersen | |
2014-12-31 | Fix alignment for soleg_encode() | Thomas Jespersen | |
2014-12-31 | Fix soleg_encode_end() | Thomas Jespersen | |
2014-12-31 | For now, remove decoding from sole-gmp | Thomas Jespersen | |
2014-12-31 | Major overhaul to use GMP | Thomas Jespersen | |
2014-12-30 | Add beginning sole-gmp impl | Thomas Jespersen | |
2014-12-29 | Check for zero-length input (do nothing) | Thomas Jespersen | |
2014-12-21 | Remove lots of debugging statements | Thomas Jespersen | |
2014-12-10 | Breaking change | Thomas Jespersen | |
2014-12-09 | Rename r to r_next | Thomas Jespersen | |
Clarifies that this is the next remainder we're extracting | |||
2014-12-09 | Fix an obvious mistake and compiler warnings | Thomas Jespersen | |
The u64() macro is now for _casting_ as uint64_t, whereas the u64c() macro is for declaring a uint64_t constant (literally appending ULL). | |||
2014-12-08 | Add header files to configure.ac and typedefs to common.h | Thomas Jespersen | |
2014-12-07 | First round at making decoding work. | Thomas Jespersen | |
TODO: Obvious test fails - fix it | |||
2014-12-07 | Documentation | Thomas Jespersen | |
2014-12-07 | Implement stream re-alignment when given input does not align | Thomas Jespersen | |
Implement sole_encode_realign() which takes care of re-aligning the way the input is read. An arbitrary byte buffer might not be 32-byte aligned, which causes the stream to be misaligned. Given a fresh buffer, we must first ensure that we re-align with 32 bytes. | |||
2014-12-07 | Fix minor error in sole_encode_end() | Thomas Jespersen | |
Identifying whether we received odd or even blocks didn't query the correct size. | |||
2014-12-07 | Fix output byte ordering | Thomas Jespersen | |
2014-12-07 | Big changes to streaming algorithm | Thomas Jespersen | |
Essentially modelled on zlib's API, which requires some setup from the user, but also offers a lot of flexibility. - Add inp and outp pointers to input and output respectively - Require set sizes for data available in input and output | |||
2014-12-06 | Fix erroneous composition for double EOF with even blocks | Thomas Jespersen | |
Now cmd-sole and sole_file agree on 64-bit output. | |||
2014-12-06 | Adjust cmd-sole to compose the blocks the same way sole_file sees it | Thomas Jespersen | |
2014-12-06 | Minor changes to sole.c | Thomas Jespersen | |
2014-12-06 | Add direct conversion from 128-bit blocks to 64-bit blocks | Thomas Jespersen | |
2014-12-04 | Fix apparent byte mangling | Thomas Jespersen | |
Haskell and C implementations now read the input in the same way. So they should produce the same output. | |||
2014-12-04 | Add byte output to both examples/sole_file and poc/cmd-sole | Thomas Jespersen | |
Their byte output should be the same (just allows us to inspect that the data is processed identically) | |||
2014-12-01 | Add total bytes read counter to sole_stream | Thomas Jespersen | |
TODO REALLY IMPORTANT! Check sole_encode_file() reads input in the "correct" order. One way to see this is to finish the poc/cmd-sole tool and have it output a 64-bit block view of a file (and compare outputs) | |||
2014-12-01 | Remove sole_mul_i3() and organise some tests | Thomas Jespersen | |
2014-11-30 | If double representation of number is in range 0..1 then round up to 1. | Thomas Jespersen | |
Otherwise we won't terminate. Also add test cases demonstrating this behaviour | |||
2014-11-30 | Move standard included files to common.h | Thomas Jespersen | |
2014-11-30 | Add missing return statement | Thomas Jespersen | |
The lack of which messed everything up, when adding a negative number to a positive. Include two test cases demonstrating this behaviour | |||
2014-11-30 | Fix high bit fetching for transforming 256-bit block to double | Thomas Jespersen | |
I had forgotten to fetch _only_ the high, and would therefore include the sign bit in the magnitude as well. | |||
2014-11-27 | More testing for subtraction | Thomas Jespersen | |
2014-11-26 | Remove print statements | Thomas Jespersen | |
Now 'examples/sole_file TODO' runs with no problem | |||
2014-11-26 | Add some subtraction and multiplication tests involving negative numbers | Thomas Jespersen | |
Fixes a few bugs | |||
2014-11-25 | Unfinished division, but growing closer | Thomas Jespersen | |
2014-11-25 | More negative number handling - almost finished | Thomas Jespersen | |
2014-11-25 | Handle subtraction | Thomas Jespersen | |
2014-11-25 | Add negative number handling to blk256_add() | Thomas Jespersen | |
2014-11-24 | Replace correcting while-loop in div algo with other correctional method. | Thomas Jespersen | |
Also remove unnecessary parenthesis | |||
2014-11-24 | Move include lines into sole header | Thomas Jespersen | |
2014-11-23 | Add 'indent' target to Makefile | Thomas Jespersen | |
Allows running 'make indent' to indent all source files. Note this does _not_ indent header files, as GNU indent doesn't handle these properly (at least it handles them differently from .c files) Also, change some lines in src/blk256.c based on Linux' checkpatch.pl output | |||
2014-11-21 | Use available macros in sole_pass1_decompose() | Thomas Jespersen | |
Checking for i3 == 0 and setting rem both have macros that do this. Use them. | |||
2014-11-20 | Add small correction step for quotient found by double division | Thomas Jespersen | |
2014-11-20 | Introduce DPT_EXTERN for extern function declarations (API functions) | Thomas Jespersen | |
Some of these tricks are taken from libgit2 | |||
2014-11-19 | Replace iterating addition with multiplication | Thomas Jespersen | |
2014-11-19 | Add 128-bit block multiplications and basic testing. | Thomas Jespersen | |
I'm pretty confident this works, and it should be pretty useful later on. More testing is required though. | |||
2014-11-19 | Write TODOs | Thomas Jespersen | |