gbmhunter/MFixedPoint
MFixedPoint is a header-only fixed-point C++ library suitable for fast arithmetic operations on systems which don't have a FPU (e.g. embedded systems).. Suitable for performing computationally intensive operations on a computing platform that does not have a floating-point unit (like most smaller embedded systems, such as Cortex-M3, CortexM0, ATmega, PSoC 5, PSoC 5 LP, PSoC 4, Arduino platforms e.t.c). Common applications include BLDC motor control and image processing. Best performance on a 32-bit or higher architecture (although 8-bit architectures should still be fine).
C++MIT
Issues
- 1
- 2
Would you consider using modern CMake?
#94 opened by ooxi - 0
- 0
Improve speed of FpF division and fix incorrect result when BaseType is greater than 32 bits.
#93 opened by gbmhunter - 0
- 0
Add CLion project files.
#92 opened by gbmhunter - 0
- 1
- 0
Add Visual Studio Code project files.
#89 opened by gbmhunter - 0
Add generic fixed-point class with storage type for bits (aka base type) templated.
#90 opened by gbmhunter - 2
Add LICENSE.
#88 opened by gbmhunter - 0
Add an enclosing 'mn' namespace to code.
#84 opened by gbmhunter - 0
Add changelog.
#85 opened by gbmhunter - 0
Change `Fp` namespace to `MFixedPoint`.
#86 opened by gbmhunter - 0
Add documentation to 'docs/'.
#87 opened by gbmhunter - 1
- 1
Make Makefile perform out-of-source builds.
#68 opened by gbmhunter - 4
- 0
Make note that is has been tested on Linux, Cortex-M3 microcontroller, Codeanywhere Devbox.
#81 opened by gbmhunter - 0
'FloatToFix32()' and 'FloatToFix64()' are not tested in unit tests, and it has been reported that they don't work.
#80 opened by gbmhunter - 0
Make sure Usage example in README actually works by making it source code and compiling/running on 'make all'.
#79 opened by gbmhunter - 0
Fixed error in usage code in README. The include path for the MFixedPointApi.hpp is incorrect.
#77 opened by gbmhunter - 0
Fix error in the usage example in README where it incorrectly casts a fast fixed-point value to a double.
#78 opened by gbmhunter - 0
- 1
- 0
Fix all unit tests so they fit the format 'CHECK_EQUAL(actual, expected)'. Many have actual and expected around the wrong way.
#75 opened by gbmhunter - 0
Move headers from 'src/include/' to 'include/', to follow the convention of other MToolkit modules.
#70 opened by gbmhunter - 0
Drop 'FixedPoint-' prefix from code files, to follow the naming convention of the other MToolkit modules.
#69 opened by gbmhunter - 0
- 0
Add API file to the new foler 'api/'.
#71 opened by gbmhunter - 0
Replace UnitTestCpp with the MUnitTest module.
#73 opened by gbmhunter - 0
- 1
- 0
Compiler Gives "ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second" Error When Doing fpNum < (int32_t)0
#64 opened by gbmhunter - 0
Add The Ability To Select Rounding Method
#63 opened by gbmhunter - 1
- 1
- 1
- 0
Add Labels That Get Added To Assembly, Then Scan Assembly File And Calculate Number Of Commands Generated
#60 opened by gbmhunter - 0
- 1
Fix64ToDouble() Incorrectly Returning Float
#55 opened by gbmhunter - 1
Add ToDouble() Functions To Fast Fp Libraries
#54 opened by gbmhunter - 1
- 1
Get Rid Of "TARGET_PLATFORM" Macro In Port.hpp
#52 opened by gbmhunter - 1
- 1
- 1
- 1
- 1
- 1