aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* libfixmath/fix16.h: replace static const with defineHEADforkXavier Del Campo Romero2022-02-241-12/+18
| | | | This allows using them with compile-time expressions.
* CMakeLists.txt: disable -Werror=return-typeXavier Del Campo Romero2022-02-241-2/+2
|
* Disable testsXavier Del Campo Romero2022-02-241-10/+8
|
* libfixmath/CMakeLists.txt: avoid glob matchingXavier Del Campo Romero2022-02-241-1/+8
|
* libfixmath/CMakeLists.txt: use target_include_directoriesXavier Del Campo Romero2022-02-241-1/+1
|
* Downgrade CMAKE_C_STANDARD to 99Xavier Del Campo Romero2022-02-241-1/+1
|
* Rename library CMakeLists.txtXavier Del Campo Romero2022-02-242-2/+2
|
* fix unsigned signed comparison in fix16_fftJohannes Ringler2022-02-231-1/+1
|
* fix warnings due to signed char on some platformsJohannes Ringler2022-02-231-4/+4
| | | | | some context: https://stackoverflow.com/a/10186479/1976323
* fix unused variable warning with FIXMATH_FAST_SIN (#35)Johannes Ringler2022-02-101-1/+4
|
* Update README.mdPetteri Aimonen2021-05-301-0/+2
| | | Add note about maintenance
* fixed division, undefined behaviors and some improvements (#33)Martin Bařinka2021-05-0326-995/+445
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * testing using ctest * emove old testing script * added github workflow CI * updated CI * added unit test for macros * F16() and F16C() are both rounding allways, so fix16_from_dbl should as well * added tests for strign operations, but these functions are in my opinion unreliable and tests are failing * removed old unittests * removed old unittests from cmake * problem with division using gcc * improved benchmark * clarification of problem with division * attempt to fix * fixed some undefined behaviors, fixed division
* Unit testing with cmake (#31)Martin Bařinka2021-04-294-16/+44
| | | | | | | | | * testing using ctest * emove old testing script * added github workflow CI * updated CI
* better unittest script (#30)Martin Bařinka2021-04-291-1/+9
|
* Make unittest #include path consistent (#29)Petteri Aimonen2021-04-292-2/+2
|
* Enable Travis CIPetteri Aimonen2021-04-291-0/+7
|
* Fix compiler warning in fix16_abs()Petteri Aimonen2021-04-291-1/+1
|
* New unittests (#28)Martin Bařinka2021-04-2919-15/+545
| | | Refactor unittests
* Merge pull request #26 from maruncz/hotfix/abs-signed-overflowPetteri Aimonen2021-04-271-1/+1
|\ | | | | signed integer overflow is undefined behavior
| * fixed: signed integer overflow is undefined behaviormaruncz2021-04-271-1/+1
|/
* Merge pull request #25 from maruncz/masterPetteri Aimonen2021-04-228-95/+294
|\ | | | | Added CMakeLists.txt and some fixes
| * fix formattingmaruncz2021-04-223-98/+93
| |
| * fixed some warningsmaruncz2021-04-212-42/+41
| |
| * added cmake project filemaruncz2021-04-196-89/+294
|/
* Merge pull request #23 from theacodes/patch-1Petteri Aimonen2021-01-232-0/+31
|\ | | | | Add LICENSE
| * Add AUTHORS fileThea Flowers2021-01-222-1/+13
| |
| * Add LICENSEStargirl Flowers2021-01-211-0/+19
|/ | | This library is wonderful, however, it's missing an explicit license in its source code. This adds the text of the MIT license along with the name of the original author. This helps folks like me make sure we follow the license terms when using this library. :)
* Merge pull request #21 from HamAndChris/fix_linear_interpolationPetteri Aimonen2020-10-295-36/+85
|\ | | | | Removed 64-bit restriction on linear interpolation functions, fixed int64 bugs
| * Removed 64-bit restriction on linear interpolation functions. Added more ↵Chris Hammond2020-10-295-36/+85
| | | | | | | | | | | | test cases and fixed several bugs in the 64-bit arithmetic functions. Also added script to run all unit tests.
* | 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
|/