Comments (2)
Hi @benruijl . The _rq
literal is implemented via a C function from the GCC quadmath library:
https://gcc.gnu.org/onlinedocs/libquadmath/strtoflt128.html#strtoflt128
In order to have the conversion done at compile time, one would need to re-implement the strtoflt128
function (or a subset of it at least) as a constexpr
function.
An alternative is to use the floating-point literal for __float128
provided by GCC, which however requires the use of specific compiler flags:
https://gcc.gnu.org/onlinedocs/gcc/Floating-Types.html
from mppp.
At the moment, I am using this second option. Basically, I have turned all the literals into real128(NUM.q)
, which requires the -fext-numeric-literals
flag.
from mppp.
Related Issues (20)
- clang-cl ICEs on construction of const qualified structured binding HOT 6
- Version 0.15 installs libraries with mismatching version numbers HOT 10
- Use of GCC extension: The 'MPPP_WITH_QUADMATH' option was enabled but the '__float128' type does HOT 18
- How to use uint
- How to use uint256_t? HOT 3
- Rational benchmark HOT 5
- No powm or invert? HOT 2
- Use mp++ types in armadillo (proof of concept) HOT 5
- All tests fail in static initialization HOT 4
- arbitrary-precision integers are capped at 64 bytes? HOT 2
- compilation errors with Clang 6,7,8 HOT 3
- The test real_bessel fails on FreeBSD 12.2 HOT 10
- benchmarks for > 2 limbs + question on licensing HOT 1
- Cannot build mp++ 0.9 HOT 8
- [BUG] 0.24 fails with mpfr-4.1.0: error: expected unqualified-id HOT 13
- Add support for decimal floats
- Alternative (better?) precision computations & approximations
- [BUG] MSVC C++20 compilation errors HOT 11
- [[maybe_unused]] ::mp_limb_t br; HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mppp.