nvteighen
May 21st, 2008, 04:02 PM
I've been with this for a while and it (somehow) works! It's a float-precision library originally meant for Programming Challenge 10 (http://ubuntuforums.org/showthread.php?t=783653), but that I couldn't finish on time. Anyway, it has been really fun to do this (and I feel I've finished some good work, after all!)
I include a tar file with the source. It includes the library's source, the header file and a little test program which performs the four basic operations (+, -, *, /) with two variables. EDIT:No negatives value supported... yet.
Of course, you won't be able to use this library for anything useful ;) I'd really appreciate any comment to improve it!
To compile the shared library:
./make
To compile the test program:
./make float_test
To execute it, you'll have to set the LD_LIBRARY_PATH env variable to the program's directory or (less recommended) copy libfloat.so to /usr/lib.
To clean:
./make clean
I include a tar file with the source. It includes the library's source, the header file and a little test program which performs the four basic operations (+, -, *, /) with two variables. EDIT:No negatives value supported... yet.
Of course, you won't be able to use this library for anything useful ;) I'd really appreciate any comment to improve it!
To compile the shared library:
./make
To compile the test program:
./make float_test
To execute it, you'll have to set the LD_LIBRARY_PATH env variable to the program's directory or (less recommended) copy libfloat.so to /usr/lib.
To clean:
./make clean