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