cpsusie / cjm-numerics Goto Github PK
View Code? Open in Web Editor NEWCJM Numerics (uint128) A header-only library for C++ 20 that provides an unsigned 128-bit integer.
License: MIT License
CJM Numerics (uint128) A header-only library for C++ 20 that provides an unsigned 128-bit integer.
License: MIT License
INCLUDED IN THIS: make actual library header-only and without dependencies except c++ std.
Test application will not be header-only and will have dependencies other than c++ std.
Looks fishy. Looks like might be truncating down to 16 bits .... need to look more closely.
Split into another header for all the macro'y stuff users shouldn't need to worry about.
Use built-in 128 bit math where not constant evaluated and available, use compiler intrinsic / asm where x64 windows and not constant evaluated.
Library should work on a header-only basis with no dependencies other than the standard libary. Unit test application will have dependencies and depend on boost, abseil[cxx17], date, (double check for additional).
See uint128.inl. Remove this!
Ideally, literals should always be evaluated at compile time and emit a compiler error if ill formed (such as too long or unsupported format, like octal). The current code throws an exception if the literal is ill-formed, causing processing of the literal to be deferred to runtime. This behavior is highly undesirable: an exception at runtime for a value known to be invalid at compile-time is unacceptable.
As a work around, which works on msvc, is to store the result of the literal operator in a constexpr local value before returning it. Then, if an error happens, msvc emits an error that it did not result in constant expression. Unfortunately, in GCC, Clang and Intel-LLVM, this strategy causes the error for any (or many) literals. The mere possibility of an exception should not cause this problem, but it seems to.
Since full and proper consteval support does not seem likely on all compilers any time soon, I will attempt to write an exception free early detection mechanism
This (parroted from abseil) is not longer needed because using limb_container.
Add help flag. Add ability to specify which tests run. Change default log std::out to file. Maybe add threading / multiple tests @ a time if not too complicated.
This would eliminate need for little endian / big endian based compiler directives.
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.