New xlns16_alt and xlns32_alt algorithms added; xlns16 now compiles on WIN32, macOS or Linux w/o mod #7
Replies: 1 comment
-
|
I have now added new options I also added the On my 2GHz i5 quad core running UBUNTU, default (no |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have updated xlns16.cpp and xlns32.cpp to allow a user optionally to replace my 25-year old xlnsadd (which was very efficient back in the day on 80x86) with a new version which is more streamlined for modern architectures. So there are now four choices in both xlns16.cpp and xlns32.cpp:
ideal with original +
non-ideal with original +
ideal with alt +
non-ideal with alt +
These produce slightly different results in certain cases.
In particular, the alt+ does overflow checking so 1e37+3.4e38 produces the max value (close to 3.4e38) rather than wrapping around 1e-39.
If the user does not specify either alt or ideal, the results are the same as the previous 1999 version.
To use, define before the include, as in the example:
#define xlns16_alt #include "xlns16.cpp"Beta Was this translation helpful? Give feedback.
All reactions