Comments (2)
It is not very clear if this method improves the computation speed.
Decker's paper is published in 1971, and in my understanding Knuth later came up with a branchless method for doing the same thing. The branchless version has only one more addition, and usually this is faster. SLEEF's routines are based on the branchless version.
In the stackoverflow page, he says "This definition of Add22 uses 11 additions instead of 20 but it requires some additional code to determine if |ah| >= |bh|," but my implementation of ddadd2_d2_d2_d2 has only 8 additions. Note that my implementation does not try to achieve full DD precision.
Actually I once considered if the Decker's algorithm is faster, and I concluded that the current version is better.
from sleef.
@shibatch, that's a interesting insight into the implemenation details, thanks.
from sleef.
Related Issues (20)
- FP64 tan_u10 is inaccurate for small values
- FP64 tan_u10 returns wrong sign for input `-0x1p-1074`
- Undefined reference `GOMP_critical_start' and `omp_init_lock' in dftcommon.c
- FP32 `hypotf_u05` and FP64 `hypot_u05` are inaccurate near underflow HOT 1
- Tests fail to compile with mpfr 4.2.0 HOT 2
- FP32 `log1pf_u10` and FP64 `log1p_u10` are infinitely inaccurate for large inputs
- Segfault when building with Apple Clang 15 HOT 12
- Unable to disable optional dependencies HOT 5
- Testvecabi fails to build on some x86 arch with `-march=native`
- unknown type name ‘__float128’ on loongarch64
- Tests fail to build with inline headers on for armhf
- Restart/Fix CI tests HOT 4
- Failures on various archs for gcc 12 HOT 2
- Failures for s390x VXE2 with qemu HOT 2
- Some tests fail on AArch64 with LLVM 17 HOT 1
- Deprecated usage of MD5 API
- Fix RVV inline header generation HOT 1
- Test more OS-es in Github Actions
- Add GNU make as potential generator in CI
- Please, create tag release HOT 3
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 sleef.