cat-ion / fixedpoint Goto Github PK
View Code? Open in Web Editor NEWA template library for fixed-point calculations
License: MIT License
A template library for fixed-point calculations
License: MIT License
Hi,
any suggestions where should be the unit test header file?
FixedPointTests.cpp:6:10: fatal error: UnitTest++.h: No such file or directory
Both MultiwordInt and FixedPoint should have methods to convert them to strings, possibly with the usual floating-point modifiers for FixedPoint (i.e. precision and printing as scientific/engineering/...)
The code is using __builtin_constant_p
to detect compile-time evaluation (in include/FixedPoint/FixedPointHelpers.hpp
), which is unsupported by VS. That's not the only issue, but the only one that can't be fixed at the moment.
Currently, fixed point numbers round when doing multiplications, but not divisions. Optimally, there should also be support for multiple rounding modes (round to zero, +- infinity, nearest number, ...)
&, ^, ~, | (and their respective assignment operators) are still missing and should be implemented.
Some combination of our atan2 implementation and the builtin clz causes recent gcc to die with an internal compiler error (https://gcc.gnu.org/ml/gcc-bugs/2017-08/msg01578.html).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.