fixed_math
FixedMath: A High-Performance C++17 Library for Fixed-Point 48.16 Arithmetic (by arturbac)
cnl
A Compositional Numeric Library for C++ (by johnmcfarlane)
fixed_math | cnl | |
---|---|---|
5 | 4 | |
56 | 621 | |
- | - | |
7.1 | 2.2 | |
about 2 months ago | 7 days ago | |
C++ | C++ | |
GNU General Public License v3.0 or later | Boost Software License 1.0 |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
fixed_math
Posts with mentions or reviews of fixed_math.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-12-27.
-
fixedmath c++17 library
github.com/arturbac/fixed_math
-
I've been developing in C++ on and off for ~5 years, but I can barely read this question... is this normal?
making code constexpr where it possibly can be evaluated at compile time lets You make a lot of checking during compile time, even writing all unit tests at compile time checked without running the code at all ... if it fails to compile it simply doesn't pass unit tests .. https://github.com/arturbac/fixed_math/tree/master/fixed_lib/include/fixedmath/unittests
-
Crashing compilers with garbage is one thing, but here's 85 characters of valid C++20 that crash clang (from trunk back to version 10) with no diagnostic: template<class...>concept c=true;int x=[]<class...T>(T...)->c<T...>auto{return 0;}();
the equation was copied from libreofficemath to kde kdevelop https://github.com/arturbac/fixed_math/commit/04e0df9924a67fe8068f881de6ece3b31f98a649
-
Fixed math header only library with MIT licence
Just add -I to folder fixed_lib/include and #include Usage examples at this moment You can see in compile time unit tests https://github.com/arturbac/fixed_math/blob/master/fixed_lib/include/fixedmath/compile_time_unit_tests.h
cnl
Posts with mentions or reviews of cnl.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-02-11.
-
Could fixed-point be introduce into C++26? If so would it be through language, library or both?
There was https://github.com/johnmcfarlane/fixed_point as a proposal. And now this repo recommends to go for https://github.com/johnmcfarlane/cnl for better version.
-
cnl library and scaled_integer
I am looking at the following library and I can't understand how to properly use it, or if my assumptions are not correct. https://github.com/johnmcfarlane/cnl
- fixedmath c++17 library
-
Float division
For instance: Compositional Numeric Library
What are some alternatives?
When comparing fixed_math and cnl you can also consider the following projects:
SG14 - A library for Study Group 14 of Working Group 21 (C++)
wide-integer - Wide-Integer implements a generic C++ template for uint128_t, uint256_t, uint512_t, uint1024_t, etc.
heyoka - C++ library for ODE integration via Taylor's method and LLVM
fpm - C++ header-only fixed-point math library
crunchy-bytes - C++ 17 Schema Serialization Library
xray-16 - Improved version of the X-Ray Engine, the game engine used in the world-famous S.T.A.L.K.E.R. game series by GSC Game World. Join OpenXRay! ;)
OpenRCT2 - An open source re-implementation of RollerCoaster Tycoon 2 🎢
fixed_point - C++ Binary Fixed-Point Arithmetic