Releases: tomcombriat/FixMath
v1.0.9
v1.0.8
v1.0.7
A small release to add the Mappers: an efficient class aimed to replace map
which allows to map an FixMath type with a specified range to another FixMath type (and another range). Constraining is also possible. Very useful for sensors!
What's Changed
- Allow certain tests to run on the Uno by @tfry-git in #18
- Bump arduino/arduino-lint-action from 1 to 2 in /.github/workflows by @dependabot in #19
- Dev/mapper by @tomcombriat in #21
New Contributors
- @dependabot made their first contribution in #19
Full Changelog: v1.0.6...v1.0.7
v1.0.6
Mostly a fix for the correct range of SFix
to be determined.
What's Changed
- Fix range of SFix for normal cases by @tomcombriat in #15
Full Changelog: v1.0.5...v1.0.6
v1.0.5
v1.0.4
v1.0.3
This adds the wonderful possibility to construct UFix
and SFix
types from constant integers, with the size of the fixed point math type automatically determined by FixMath, thanks to @tfry-git !
For example:
auto a = UFixAuto<3>(); // leads to a UFix<2,0>
auto b = SFixAuto<15>(); // leads to a SFix<4,0>
What's Changed
Full Changelog: v1.0.2...v1.0.3
v1.0.2
Small bugfix in the auto-adjust of NI
for SFix
types.
What's Changed
Full Changelog: v1.0.1...v1.0.2
v1.0.1
New release of FixMath. In brief:
constexpr
are now used in a lot of places, allowoing for more optimization from the compiler and automatic tests that the library behaves correctly, thanks to @tfry-gitinvAccurate
is now accurate, the old behavior has been replaced withinvFull
- an helper function has been added to help asserting the size of a FixMath type at compile time.
auto
is encouraged but this gives a way to prevent unexpected (for the programmer) type promotion. Thanks to @tfry-git . - Bug fix
- Added possibility to convert a FixMath to an C++
int
(orint8_t
,int16_t
,uint8_t
, etc) by truncating the fractional part.
Below a more automatic changelog.
What's Changed
- Adding asInt() by @tomcombriat in #3
- Use constexprs where possible by @tfry-git in #4
- Fixes #7 by @tomcombriat in #8
- Add helper function to guard against unexpected size inflation. by @tfry-git in #9
- New invAccurate by @tomcombriat in #6
New Contributors
- @tomcombriat made their first contribution in #3
Full Changelog: v1.0.0...v1.0.1
Initial Release of FixMath
Initial release of FixMath, a fixed point arithmetic library targeted for Arduino and cie boards.
This provides an alternative to float and double types, while using integer type under the hood which provides a performance gain for microcontrollers lacking a floating point unit.
Promotion of the internal types is processed internally and at compile time. Using standard operations between FixMath types ensures that precision is kept and overflows are avoided. FixMath tries to be conservative and do not promote types when not needed.
What's Changed
New Contributors
Full Changelog: https://github.com/tomcombriat/FixMath/commits/v1.0.0