aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #20 from HamAndChris/fix_linear_interpolationPetteri Aimonen2020-10-233-3/+33
|\ | | | | Fix type conversion bugs in linear interpolation functions
| * Added unit tests for "lerp" functions, and found several type conversion bugsChris Hammond2020-10-223-3/+33
|/
* Merge pull request #16 from althonos/patch-1Petteri Aimonen2020-03-151-1/+1
|\ | | | | Fix GCC error when compiling in no-overflow mode
| * Fix `elif` without condition in `fix16_trig.c`Martin Larralde2020-03-151-1/+1
|/
* Merge pull request #15 from dlech/patch-1Petteri Aimonen2019-12-131-0/+2
|\ | | | | add #include <stdint.h> to int64.h
| * add #include <stdint.h> to int64.hDavid Lechner2019-12-121-0/+2
|/ | | When using the `gcc -M` option to determine header file dependencies, int64.h causes an error because the types from stdint.h are not defined.
* Merge pull request #13 from althonos/patch-1Petteri Aimonen2019-09-081-0/+4
|\ | | | | Fix missing function when building without overflow support
| * Fix missing function when building without overflow supportMartin Larralde2019-09-081-0/+4
|/
* Merge pull request #12 from dlech/masterPetteri Aimonen2019-06-174-38/+56
|\ | | | | Fixes
| * Fix conflict with __int64_t typedefDavid Lechner2019-06-161-32/+32
| | | | | | | | | | | | On Linux, we get a compile error because __int64_t is defined and included by stdint.h. Double underscores are reseved in C in general and should not be used anyway. Replace with a single leading underscore.
| * add FIXMATH_NO_CTYPE optionDavid Lechner2019-06-162-6/+21
| | | | | | | | | | | | | | | | When compiling with -nostdlib, the functions in ctype may not be available. Add FIXMATH_NO_CTYPE option to replace them with inline functions. Also add unit test to test str functions with this option enabled.
| * clean all unit testsDavid Lechner2019-06-161-0/+3
| | | | | | | | make clean should delete all unit test binary files
| * Add explicit cast in fix16_from_dbl()David Lechner2019-06-161-1/+1
|/ | | | | | | | | | This fixes the error: implicit conversion from 'float' to 'double' to match other operand of binary expression When the compiler options -fsingle-precision-constant -Wdouble-promotion are set
* Merge pull request #10 from puzrin/patch-1Petteri Aimonen2019-04-151-1/+1
|\ | | | | Suppress `-Wconversion` warning
| * Suppress `-Wconversion` warningVitaly Puzrin2019-04-151-1/+1
|/
* Merge pull request #9 from puzrin/patch-1Petteri Aimonen2018-07-271-3/+0
|\ | | | | platformio: drop 'export' option from config
| * platformio: drop 'export' option from configVitaly Puzrin2018-07-271-3/+0
|/ | | Library should be useable from pio both by direct git link and by name.
* Merge pull request #8 from puzrin/masterPetteri Aimonen2018-07-241-1/+5
|\ | | | | Update pio manifest to satisfy registry add rules
| * Update pio manifest to satisfy registry add rulesVitaly Puzrin2018-07-241-1/+5
|/
* Merge pull request #6 from puzrin/masterPetteri Aimonen2018-07-241-0/+18
|\ | | | | Add library config for PlatformIO
| * Add library config for PlatformIOVitaly Puzrin2018-07-241-0/+18
|/
* Merge pull request #4 from cladmi/pr/libfixmath/gcc6Petteri Aimonen2017-09-281-1/+1
|\ | | | | Fix '-Werror=shift-negative-value' for gcc 6
| * Fix '-Werror=shift-negative-value' for gcc 6Gaëtan Harter2017-09-281-1/+1
|/ | | | | | | | GCC 6 introduced warning for shift on negative value numbers. When F16C is called with a negative number it evaluates FIXMATH_COMBINE_I_M with both the positive and the negative value. Fixes #3
* Merge pull request #2 from xli2012/constPetteri Aimonen2017-08-091-8/+8
|\ | | | | make some member functions const
| * make some member functions constXin Li2017-08-081-8/+8
|/
* Add license info, as originally on Google Code.Petteri Aimonen2015-07-071-0/+2
|
* Create README.mdPetteri Aimonen2015-07-071-0/+5
|
* Add F16C() macro for defining values without float support.PetteriAimonen2014-12-303-1/+201
| | | | Implementation by Jonas Zeiger.
* Fix typo in benchmark.c.PetteriAimonen2014-12-301-1/+1
|
* Fix compile error on GCCPetteriAimonen2014-01-161-1/+1
|
* Fix errors on Visual Studio (patch by sunside227)PetteriAimonen2014-01-162-2/+2
|
* Fix bug in fix16_str_unittests on Windows.PetteriAimonen2013-04-191-1/+1
| | | | | Fixes issue 23.
* Fix bug in the fix16_fft examplePetteriAimonen2013-02-171-1/+1
|
* Add #ifndefs around sdiv/smul/sadd/ssub in the C++ interface.PetteriAimonen2013-01-281-0/+10
| | | | | Closes issue #19.
* Fix error in fix16_lerp16 on platforms with sizeof(int) == 2.PetteriAimonen2013-01-281-2/+2
| | | | | Patch by georgjohann. Closes issue 20.
* Use >= comparison in fix16_sadd, fix16_ssub.PetteriAimonen2013-01-281-2/+2
| | | | | | Patch submitted by georgjohann. Closes issue #21.
* Fixed erronous printout of division unit test.Flatmush2012-08-311-3/+3
|
* Fix a division bug on 64-bit platforms.Petteri.Aimonen2012-08-311-1/+1
| | | | | | | The GCC builtin clzl depends on the sizeof(long), which caused an error if it was other than 32 bits. Fixes issue #17.
* Add shorthand macro F16() for defining numeric constantsPetteri.Aimonen2012-08-301-0/+9
|
* Edited wiki page FunctionReference through web user interface.Petteri.Aimonen2012-08-290-0/+0
|
* Added to/from string conversion functions, and testcases for them.Petteri.Aimonen2012-08-294-2/+252
|
* Perform the fix16_min -> fix16_minimum rename in unittests to make them work ↵Petteri.Aimonen2012-08-292-12/+12
| | | | again.
* Const allows more optimizations than purePetteri.Aimonen2012-08-051-2/+2
|
* Add fix16_sq() inline function as a shorthand to square valuesPetteri.Aimonen2012-08-051-1/+4
|
* Updated coding style document.Flatmush2012-07-252-14/+51
| | | | | Cleaned up some code.
* Added basic code style document to project.Flatmush2012-07-251-0/+229
|
* Added abs, floor, ceil, min, max, clamp.Flatmush2012-07-253-83/+92
| | | | | More code cleanup.
* Added log base 2 functions kindly provided by Tev Olsen.Flatmush2012-07-252-2/+109
|
* Added some deg/rad conversion functions.Flatmush2012-07-254-446/+497
| | | | | | Fixed up some code style inconsistencies. Added a modulo function to allow optimization on 8-bit machines.
* Added a patch to make operator results constant in the C++ interface as ↵Flatmush2012-07-021-4/+4
| | | | suggested in Issue 15.